Beispiel #1
0
        public void ManageUserAccessPage_LHN_Applicants()
        {
            // page objects
            var mainMenu     = new MainMenu(_driver);
            var superSuitNav = new SuperSuitNavigation(_driver);
            var applicantAdminDashboardPage = new ApplicantAdminDashboardPage(_driver);
            var manageUserAccessPage        = new ManageUserAccessPage(_driver);
            var expectedMenuItems           = new StringCollection
            {
                "Applicant Dashboard",
                "Vacancies by Category",
                "Vacancies by Location",
                "Category Pipelines",
                "Position Pools",
                "Actions, Notes and Status",
                "Certification",
                "Highly Qualified Subject",
                "Extracurricular Interest",
                "Folders & Routings",
                "Recruitment Effort",
                "Search Form",
                "Recent Submissions"
            };

            try
            {
                _driver.Navigate().GoToUrl(_muapUrl);
                manageUserAccessPage.WaitForPageToLoad();
                _test.Log(LogStatus.Info, $"Navigate to the MUAP: {_muapUrl}");

                superSuitNav.ClickApplicants();
                CollectionAssert.AreEqual(mainMenu.GetNavLinkText(), expectedMenuItems, "Applicants menu did not load correctly.");
                _test.Log(LogStatus.Pass, "Applicant menu items loaded correctly.");

                Assert.IsTrue(applicantAdminDashboardPage.IsDisplayed(), "Applicant dashboard did not load correctly.");
                _test.Log(LogStatus.Pass, "Applicant dashboard loaded correctly.");
            }
            catch (Exception e)
            {
                HandleException(e, _driver);
                throw;
            }
        }
Beispiel #2
0
        public void LHN_Applicants_ApplicantDashboard()
        {
            var mainMenu       = new MainMenu(_driver);
            var applicantsMenu = new SubMenuApplicants(_driver);
            var applicantAdminDashboardPage = new ApplicantAdminDashboardPage(_driver);

            try
            {
                mainMenu.ClickApplicants();
                applicantsMenu.ClickApplicantDashboard();
                _test.Log(LogStatus.Pass, "Navigate to Applicants > Applicant Dashboard");

                Assert.IsTrue(applicantAdminDashboardPage.IsDisplayed(), "Applicant dashboard did not load correctly.");
                _test.Log(LogStatus.Pass, "Applicant dashboard loaded correctly.");
            }
            catch (Exception e)
            {
                HandleException(e, _driver);
                throw;
            }
        }
Beispiel #3
0
        public void LHN_Applicants()
        {
            var mainMenu = new MainMenu(_driver);
            var applicantAdminDashboardPage = new ApplicantAdminDashboardPage(_driver);

            var expectedMenuItems = new StringCollection
            {
                "Applicant Dashboard",
                "Vacancies by Category",
                "Vacancies by Location",
                "Category Pipelines",
                "Position Pools",
                "Actions, Notes and Status",
                "Certification",
                "Highly Qualified Subject",
                "Extracurricular Interest",
                "Folders & Routings",
                "Recruitment Effort",
                "Search Form",
                "Recent Submissions"
            };

            try
            {
                mainMenu.ClickApplicants();
                _test.Log(LogStatus.Pass, "Navigate to Applicants");

                CollectionAssert.AreEqual(expectedMenuItems, mainMenu.GetNavLinkText(),
                                          "The Applicants menu does not contain the correct items");
                _test.Log(LogStatus.Pass, "The Applicants menu contains the correct items");

                Assert.IsTrue(applicantAdminDashboardPage.IsDisplayed(), "Applicant dashboard did not load correctly.");
                _test.Log(LogStatus.Pass, "Applicant dashboard loaded correctly.");
            }
            catch (Exception e)
            {
                HandleException(e, _driver);
                throw;
            }
        }