public void VerifyNoSubscriberCanNotShare(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, click "Share link" button.
            HomePagePanel.ClickEnjoyWidgetButton(dashboard[0].WidgetName);
            TimeManager.Pause(HomePagePanel.WAITSHAREWINDOWTIME);

            //There isn't users(UserB and UserC) in SharetoUser list.
            Assert.IsFalse(ShareWindow.IsEnjoyUserExistedOnWindow(dashboard[0].ShareUsers[0]));
            Assert.IsFalse(ShareWindow.IsEnjoyUserExistedOnWindow(dashboard[0].ShareUsers[1]));

            //Confirm button is gray and disabled.
            Assert.IsFalse(ShareWindow.IsEnjoyButtonEnable());

            ShareWindow.ClickGiveUpEnjoyButton();
            TimeManager.ShortPause();
        }
Exemplo n.º 2
0
        public void SubscriberViewTheSubscriberList(ShareDashboardData input)
        {
            var dashboard = input.InputData.DashboardInfo;

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

            //Open subscriber user list window.
            HomePagePanel.ClickShareMyShareWidgetButton(dashboard[0].WidgetName);
            TimeManager.ShortPause();

            //Mouse to UserB's line.The Quitsubscriber button display.
            ShareWindow.FloatOnSubscriberUser(dashboard[0].ShareUsers[1]);
            Assert.AreEqual(input.ExpectedData.messages[0], ShareWindow.GetRemoveorQuitSubcriberText(dashboard[0].ShareUsers[1]));
            ShareWindow.CloseSubcriberListWindow();
            TimeManager.ShortPause();

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

            //Open subscriber user list window.
            HomePagePanel.ClickShareMyShareWidgetButton(dashboard[0].WidgetName);
            TimeManager.ShortPause();

            //Mouse to UserB's line.The Quitsubscriber button display.
            ShareWindow.FloatOnSubscriberUser(dashboard[0].ShareUsers[1]);
            Assert.AreEqual(input.ExpectedData.messages[1], ShareWindow.GetRemoveorQuitSubcriberText(dashboard[0].ShareUsers[1]));

            //Click Invitation button.Check UserC.
            ShareWindow.ClickInviteOtherButton();
            TimeManager.ShortPause();
            ShareWindow.CheckEnjoyUser(dashboard[0].ShareUsers[2]);

            //Mouse to UserC's line and click Close button.
            ShareWindow.ClickRemoveEnjoyUserButton(dashboard[0].ShareUsers[2]);

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

            //Confirm is gray.
            Assert.IsFalse(ShareWindow.IsEnjoyButtonEnable());

            ShareWindow.Close();
            TimeManager.ShortPause();
        }