public void ShareWidgetWithPriorAnnotationCanbeModify(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 "ShareCollaborative" button.
            HomePagePanel.ClickEnjoyWidgetButton(dashboard[0].WidgetName);
            TimeManager.Pause(HomePagePanel.WAITSHAREWINDOWTIME);

            ////Check UserB in the left panel ,Modify the annotation in field.
            ShareWindow.CheckEnjoyUser(dashboard[0].ShareUsers[0]);
            TimeManager.ShortPause();
            Assert.AreEqual(1, ShareWindow.GetEnjoyUserNumber());
            ShareWindow.FillEnjoyWindowComment(dashboard[0].widgetComments[0]);
            TimeManager.ShortPause();
            ShareWindow.ClickEnjoyButton();
            TimeManager.ShortPause();

            //Navigate to homepage, then to "Collaborative Widget " tab.
            HomePagePanel.NavigateToMyShare();

            //·There is a widgetA appear in "Collaborative Widget " with the modified annotation.
            HomePagePanel.FloatOnMyShareEditCommentButton(dashboard[0].WidgetName);
            TimeManager.ShortPause();
            Assert.AreEqual(dashboard[0].widgetComments[0], HomePagePanel.GetExistedCommentMinWdiget());
        }
Ejemplo n.º 2
0
        public void ShareWidgetWithValidInfo(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);

            //·There is UserB and UserC display in receivers list.
            Assert.IsTrue(ShareWindow.IsEnjoyUserExistedOnWindow(dashboard[0].ShareUsers[0]));
            Assert.IsTrue(ShareWindow.IsEnjoyUserExistedOnWindow(dashboard[0].ShareUsers[1]));

            //·There isn't UserD display in receivers list.
            Assert.IsFalse(ShareWindow.IsEnjoyUserExistedOnWindow(dashboard[0].ShareUsers[2]));

            //Check UserB and UserC checkbox.
            ShareWindow.CheckEnjoyUser(dashboard[0].ShareUsers[0]);
            ShareWindow.CheckEnjoyUser(dashboard[0].ShareUsers[1]);
            TimeManager.ShortPause();
            Assert.AreEqual(2, ShareWindow.GetEnjoyUserNumber());

            //Click "共享 button"
            ShareWindow.ClickEnjoyButton();
            TimeManager.ShortPause();

            //Navigate to homepage, then to "Collaborative Widget " tab.
            HomePagePanel.NavigateToMyShare();

            //WidgetA mirror display at the top of thumbnail list of under UserA.
            Assert.IsTrue(HomePagePanel.IsWidgetExistedOnMyShare(dashboard[0].WidgetName));
            TimeManager.ShortPause();

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

            //WidgetA mirror display at the top of thumbnail list of under UserA.
            Assert.IsTrue(HomePagePanel.IsWidgetExistedOnMyShare(dashboard[0].WidgetName));
            TimeManager.ShortPause();

            //Login to Jazz with userD. Navigate to homepage, then to hierarchynodeA.
            HomePagePanel.ExitJazz();
            JazzFunction.LoginPage.LoginWithOption(dashboard[0].Receivers[2].LoginName, dashboard[0].Receivers[2].Password, null);
            HomePagePanel.NavigateToMyShare();

            //WidgetA mirror display at the top of thumbnail list of under UserA.
            Assert.IsTrue(HomePagePanel.IsWidgetExistedOnMyShare(dashboard[0].WidgetName));
            TimeManager.ShortPause();
        }