public void ShareWidgetFailed01(ShareDashboardData input) { var dashboard = input.InputData.DashboardInfo; JazzFunction.LoginPage.LoginWithOption(dashboard[0].Receivers[0].LoginName, dashboard[0].Receivers[0].Password, dashboard[0].HierarchyName[0]); HomePagePanel.NavigateToAllDashboard(); HomePagePanel.SelectHierarchyNode(dashboard[0].HierarchyName); TimeManager.MediumPause(); HomePagePanel.ClickDashboardButton(dashboard[0].DashboardName); JazzMessageBox.LoadingMask.WaitDashboardHeaderLoading(30); TimeManager.LongPause(); //Click "share Widget" button HomePagePanel.ClickShareWidgetButton(dashboard[0].WidgetName); TimeManager.Pause(HomePagePanel.WAITSHAREWINDOWTIME); //There isn't any users(UserC and UserB) display Assert.IsFalse(ShareWindow.IsShareUserExistedOnWindow(dashboard[0].ShareUsers[0])); Assert.IsFalse(ShareWindow.IsShareUserExistedOnWindow(dashboard[0].ShareUsers[1])); // "share" button is gary out and disabled Assert.IsFalse(ShareWindow.IsShareButtonEnable()); //Close share window ShareWindow.Close(); }
public void ShareDashboardFailed01(ShareDashboardData input) { var dashboard = input.InputData.DashboardInfo; JazzFunction.LoginPage.LoginWithOption(dashboard[0].Receivers[0].LoginName, dashboard[0].Receivers[0].Password, dashboard[0].HierarchyName[0]); HomePagePanel.NavigateToAllDashboard(); HomePagePanel.SelectHierarchyNode(dashboard[0].HierarchyName); TimeManager.MediumPause(); //Click "share dashboard" button HomePagePanel.ClickShareDashboardButton(dashboard[0].DashboardName); TimeManager.Pause(HomePagePanel.WAITSHAREWINDOWTIME); //There userC, B not display Assert.IsFalse(ShareWindow.IsShareUserExistedOnWindow(dashboard[0].ShareUsers[0])); Assert.IsFalse(ShareWindow.IsShareUserExistedOnWindow(dashboard[0].ShareUsers[1])); // "share" button is gary out and disabled Assert.IsFalse(ShareWindow.IsShareButtonEnable()); ShareWindow.ClickGiveupButton(); TimeManager.LongPause(); }