示例#1
0
        public void VerifySponsorCanInviteOtherUsers(ShareDashboardData input)
        {
            var dashboard = input.InputData.DashboardInfo;

            //Login to Jazz with UserA. Navigate to homepage->Dashboard->Collaborative Widget  tab.
            JazzFunction.LoginPage.LoginWithOption(dashboard[0].Receivers[0].LoginName, dashboard[0].Receivers[0].Password, null);
            HomePagePanel.NavigateToMyShare();

            //Click "Subscriber User List" button in widgetA.
            HomePagePanel.ClickShareMyShareWidgetButton(dashboard[0].WidgetName);
            TimeManager.ShortPause();

            //.UserA,UserB appear in the subscriber user list.
            Assert.IsTrue(ShareWindow.IsEnjoyUserInSubscribeUserList(dashboard[0].ShareUsers[0]));
            Assert.IsTrue(ShareWindow.IsEnjoyUserInSubscribeUserList(dashboard[0].ShareUsers[1]));

            //Click "Invitation" button, check UserC and UserD add the new annotation and then click Confirm button.
            ShareWindow.ClickInviteOtherButton();
            TimeManager.ShortPause();
            ShareWindow.CheckEnjoyUser(dashboard[0].ShareUsers[2]);
            ShareWindow.CheckEnjoyUser(dashboard[0].ShareUsers[3]);

            //UserC and UserD appear in SharetoUser list in the right panel.
            Assert.IsTrue(ShareWindow.IsEnjoyUserInSendedList(dashboard[0].ShareUsers[2]));
            Assert.IsTrue(ShareWindow.IsEnjoyUserInSendedList(dashboard[0].ShareUsers[3]));

            ShareWindow.ClickEnjoyButton();
            TimeManager.ShortPause();

            //Login to Jazz with UserC.Navigate to homepage, then to "Collaborative Widget " tab.
            HomePagePanel.ExitJazz();
            JazzFunction.LoginPage.LoginWithOption(dashboard[0].Receivers[2].LoginName, dashboard[0].Receivers[2].Password, dashboard[0].HierarchyName[0]);
            HomePagePanel.NavigateToMyShare();

            //There is a widgetA appear in "Collaborative Widget " with the new annotation.
            Assert.IsTrue(HomePagePanel.IsWidgetExistedOnMyShare(dashboard[0].WidgetName));

            //Login to Jazz with UserD.Navigate to homepage, then to "Collaborative Widget " tab.
            HomePagePanel.ExitJazz();
            JazzFunction.LoginPage.LoginWithOption(dashboard[0].Receivers[3].LoginName, dashboard[0].Receivers[3].Password, dashboard[0].HierarchyName[0]);
            HomePagePanel.NavigateToMyShare();

            //There is a widgetA appear in "Collaborative Widget " with the new annotation.
            Assert.IsTrue(HomePagePanel.IsWidgetExistedOnMyShare(dashboard[0].WidgetName));
        }