Exemplo n.º 1
0
        public void SponserViewTheSubscriberList(ShareDashboardData input)
        {
            var dashboard = input.InputData.DashboardInfo;

            //Login to Jazz with userA. Navigate to homepage, then to hierarchynodeA.  Click the dashboardA name from dashboard list.
            JazzFunction.LoginPage.LoginWithOption(dashboard[0].Receivers[0].LoginName, dashboard[0].Receivers[0].Password, null);
            HomePagePanel.NavigateToAllDashboard();

            HomePagePanel.SelectHierarchyNode(dashboard[0].HierarchyName);
            TimeManager.MediumPause();

            HomePagePanel.ClickDashboardButton(dashboard[0].DashboardName);
            JazzMessageBox.LoadingMask.WaitDashboardHeaderLoading(15);
            TimeManager.LongPause();

            //Select widgetA and click "Share link" button
            HomePagePanel.ClickEnjoyWidgetButton(dashboard[0].WidgetName);
            TimeManager.Pause(HomePagePanel.WAITSHAREWINDOWTIME);

            //UserB and UserC in the left panel.Check UserB.
            ShareWindow.CheckEnjoyUser(dashboard[0].ShareUsers[1]);

            //.UserB is checked in the left panel.
            Assert.IsTrue(ShareWindow.IsEnjoyUserChecked(dashboard[0].ShareUsers[1]));

            //Mouse float the UserB in the right panel.Click Close button.
            ShareWindow.ClickRemoveEnjoyUserButton(dashboard[0].ShareUsers[1]);
            TimeManager.ShortPause();

            //.UserB disappear in the right panel and uncheck in the left panel.
            Assert.IsFalse(ShareWindow.IsEnjoyUserInSendedList(dashboard[0].ShareUsers[1]));
            Assert.IsFalse(ShareWindow.IsEnjoyUserChecked(dashboard[0].ShareUsers[1]));

            //Check UserB and UserC.UserB and UserC are checked in the left panel.
            ShareWindow.CheckEnjoyUser(dashboard[0].ShareUsers[1]);
            ShareWindow.CheckEnjoyUser(dashboard[0].ShareUsers[2]);
            TimeManager.ShortPause();
            Assert.IsTrue(ShareWindow.IsEnjoyUserInSendedList(dashboard[0].ShareUsers[1]));
            Assert.IsTrue(ShareWindow.IsEnjoyUserInSendedList(dashboard[0].ShareUsers[2]));
            Assert.IsTrue(ShareWindow.IsEnjoyUserChecked(dashboard[0].ShareUsers[1]));
            Assert.IsTrue(ShareWindow.IsEnjoyUserChecked(dashboard[0].ShareUsers[2]));

            //Click Confirm button.
            ShareWindow.ClickEnjoyButton();
            TimeManager.ShortPause();
        }