コード例 #1
0
        /// <summary>
        /// https://github.com/TeamMentor/Master/issues/829
        /// </summary>
        [Test] public void Issue_829__Get_rid_of_Control_Panel()
        {
            ieTeamMentor.open_Page_Login_if_Needed("/TeamMentor");

            // location 1) check link on home page
            ie.assert_Uri_Is(siteUri.mapPath("/TeamMentor"))             // confirm that we are on the main TM page
            .wait_For_Link("Logout")
            .assert_Has_Link("Logout")
            .assert_Has_Link("Tbot")
            .assert_Doesnt_Have_Link("Control Panel");                   // (Issue_830) for the 3.5 release this link should not be there

            // location 2) check link on Tbot page
            ie.link("TBot").click();
            ie.assert_Uri_Is(siteUri.mapPath("/rest/tbot/run/Commands"))
            .assert_Has_Link("Restart Server")
            .assert_Has_Link("TBot Monitor")
            .assert_Doesnt_Have_Link("Control Panel (legacy)");

            //  location 3)check for link on TBot Monitor
            ie.link("TBot Monitor").click();
            ie.assert_Uri_Is(siteUri.mapPath("/Tbot_Monitor/monitor.htm#/monitor/activities"))
            .assert_Has_Link("TeamMentor Admin (TBot)")
            .assert_Doesnt_Have_Link("Control Panel (legacy)");
        }
コード例 #2
0
 [Test] public void page_Admin()
 {
     ieTeamMentor.page_Admin();
     ie.assert_Uri_Is(siteUri.append("html_pages/ControlPanel/controlpanel.html"));
 }