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(); }
public void VerifyCancelAndCloseWhenShareCollaborativeWidget(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); //check UserB in the left panel. ShareWindow.CheckEnjoyUser(dashboard[0].ShareUsers[0]); TimeManager.ShortPause(); //Mouse over the UserB in the right panel.Click Close button or Uncheck the checkbox for UserB. ShareWindow.ClickRemoveEnjoyUserButton(dashboard[0].ShareUsers[0]); TimeManager.ShortPause(); //UserB disappears in SharetoUser list in the right panel. Assert.IsFalse(ShareWindow.IsEnjoyUserInSendedList(dashboard[0].ShareUsers[0])); //Check UserB and UserC in left panel and then click "Cancel" button. ShareWindow.CheckEnjoyUser(dashboard[0].ShareUsers[0]); ShareWindow.CheckEnjoyUser(dashboard[0].ShareUsers[1]); TimeManager.ShortPause(); ShareWindow.ClickGiveUpEnjoyButton(); TimeManager.ShortPause(); //WidgetA cannot appear in UserA,UserB and UserC's Collaborative Widget tab page HomePagePanel.NavigateToMyShare(); Assert.IsFalse(HomePagePanel.IsWidgetExistedOnMyShare(dashboard[0].WidgetName)); TimeManager.ShortPause(); //Navigate to homepage, then to hierarchynodeA. Click the dashboardA name from dashboard list. 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 and check UserB in left panel. HomePagePanel.ClickEnjoyWidgetButton(dashboard[0].WidgetName); TimeManager.Pause(HomePagePanel.WAITSHAREWINDOWTIME); ShareWindow.CheckEnjoyUser(dashboard[0].ShareUsers[0]); TimeManager.ShortPause(); ShareWindow.ClickGiveUpEnjoyButton(); TimeManager.ShortPause(); //WidgetA cannot appear in UserA,UserB and UserC's Collaborative Widget tab page HomePagePanel.NavigateToMyShare(); Assert.IsFalse(HomePagePanel.IsWidgetExistedOnMyShare(dashboard[0].WidgetName)); TimeManager.ShortPause(); }