Пример #1
0
        public void ManageUserAccessPage_LHN_Marketplace()
        {
            var mainMenu             = new MainMenu(_driver);
            var superSuitNav         = new SuperSuitNavigation(_driver);
            var manageUserAccessPage = new ManageUserAccessPage(_driver);
            var marketPlacePage      = new MarketPlacePage(_driver);

            var expectedMenuItems = new StringCollection
            {
                "Modules",
                "Training and Consulting Services",
                "Integrations",
                "Frontline"
            };

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

                superSuitNav.ClickMarketplace();
                CollectionAssert.AreEqual(mainMenu.GetNavLinkText(), expectedMenuItems, "Marketplace menu did not load correctly.");
                _test.Log(LogStatus.Pass, "Marketplace Menu items loaded correctly.");

                Assert.IsTrue(marketPlacePage.IsDisplayed(), "Marketplace dashboard did not load correctly.");
                _test.Log(LogStatus.Pass, "Marketplace dashboard loaded correctly.");
            }
            catch (Exception e)
            {
                HandleException(e, _driver);
                throw;
            }
        }
Пример #2
0
        public void ManageUserAccessPage_LHN_Tools()
        {
            var mainMenu             = new MainMenu(_driver);
            var superSuitNav         = new SuperSuitNavigation(_driver);
            var manageUserAccessPage = new ManageUserAccessPage(_driver);
            var dashboardPage        = new DashboardPage(_driver);

            var expectedMenuItems = new StringCollection
            {
                "Additional Materials",
                "Maintenance Tasks",
                "Reports",
                "Filer"
            };

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

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

                Assert.IsTrue(dashboardPage.IsDisplayed(), "Dashboard did not load correctly.");
                _test.Log(LogStatus.Pass, "Dashboard loaded correctly.");
            }
            catch (Exception e)
            {
                HandleException(e, _driver);
                throw;
            }
        }
Пример #3
0
        public void ManageUserAccessPage_LHN_Setup()
        {
            var mainMenu             = new MainMenu(_driver);
            var superSuitNav         = new SuperSuitNavigation(_driver);
            var manageUserAccessPage = new ManageUserAccessPage(_driver);
            var dashboardPage        = new DashboardPage(_driver);

            var expectedMenuItems = new StringCollection
            {
                "Core",
                "Applicant Settings",
                "Employee Settings",
                "Forms"
            };

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

                superSuitNav.ClickSetup();
                CollectionAssert.AreEqual(mainMenu.GetNavLinkText(), expectedMenuItems, "Setup menu did not load correctly.");
                _test.Log(LogStatus.Pass, "Setup Menu items loaded correctly.");

                Assert.IsTrue(dashboardPage.IsDisplayed(), "Dashboard did not load correctly.");
                _test.Log(LogStatus.Pass, "Dashboard loaded correctly.");
            }
            catch (Exception e)
            {
                HandleException(e, _driver);
                throw;
            }
        }
Пример #4
0
        public void ManageUserAccessPage_LHN_Interviews()
        {
            var mainMenu             = new MainMenu(_driver);
            var superSuitNav         = new SuperSuitNavigation(_driver);
            var manageUserAccessPage = new ManageUserAccessPage(_driver);
            var interviewsPages      = new InterviewPages(_driver);

            var expectedMenuItems = new StringCollection
            {
                "By Date",
                "By Title",
                "By Organizer",
                "Create Interview"
            };

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

                superSuitNav.ClickInterviews();
                CollectionAssert.AreEqual(mainMenu.GetNavLinkText(), expectedMenuItems, "Interviews menu did not load correctly.");
                _test.Log(LogStatus.Pass, "Interviews Menu items loaded correctly.");

                _driver.SwitchToFrameById("MainContentsIFrame");
                Assert.IsTrue(interviewsPages.DashboardPage.IsDisplayed(), "Interviews dashboard did not load correctly.");
                _test.Log(LogStatus.Pass, "Interviews dashboard loaded correctly.");
            }
            catch (Exception e)
            {
                HandleException(e, _driver);
                throw;
            }
        }
Пример #5
0
        public void ManageUserAccessPage_LHN_JobPostings()
        {
            // page objects
            var mainMenu             = new MainMenu(_driver);
            var superSuitNav         = new SuperSuitNavigation(_driver);
            var manageUserAccessPage = new ManageUserAccessPage(_driver);
            var jobPostingPages      = new JobPostingsPages(_driver);

            var expectedMenuItems = new StringCollection
            {
                "Job Postings Dashboard",
                "List All Active Postings",
                "Create New Posting",
                "Open Postings By Category",
                "Active Postings By Category",
                "All Postings By Status",
                "Requisition Inbox",
                "Create New Requisition",
                "My Draft Requisitions",
                "My Requisitions In Process",
                "My Open Requisitions",
                "My Closed Requisitions",
                "My Denied Requisitions",
                "Approved By Me -Active",
                "Approved By Me -InActive",
                "Close An Approved Posting",
                "All Active Requisitions",
                "All Inactive Requisitions",
                "Create New Template",
                "List Existing"
            };

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

                superSuitNav.ClickJobPostings();
                CollectionAssert.AreEqual(mainMenu.GetNavLinkText(), expectedMenuItems, "Job Postings menu did not load correctly.");
                _test.Log(LogStatus.Pass, "Job Postings Menu items loaded correctly.");

                Assert.IsTrue(jobPostingPages.DashboardPage.IsDisplayed(), "Employee dashboard did not load correctly.");
                _test.Log(LogStatus.Pass, "Job Postings dashboard loaded correctly.");
            }
            catch (Exception e)
            {
                HandleException(e, _driver);
                throw;
            }
        }
Пример #6
0
        public void ManageUserAccessPage_LHN_Employees()
        {
            // page objects
            var mainMenu                   = new MainMenu(_driver);
            var superSuitNav               = new SuperSuitNavigation(_driver);
            var manageUserAccessPage       = new ManageUserAccessPage(_driver);
            var employeeAdminDashboardPage = new EmployeeAdminDashboardPage(_driver);
            var expectedMenuItems          = new StringCollection
            {
                "Employee Dashboard",
                "Create New Employee",
                "Employee List",
                "Alpha Groups",
                "Location",
                "Position",
                "Folder",
                "Search Form",
                "Employee Evaluations Dashboard",
                "Employee Timelines Dashboard",
                "View Help Requests",
                "Help Request Categories",
                "Manage Timelines"
            };

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

                superSuitNav.ClickEmployees();
                CollectionAssert.AreEqual(mainMenu.GetNavLinkText(), expectedMenuItems, "Employee menu did not load correctly.");
                _test.Log(LogStatus.Pass, "Employee Menu items loaded correctly.");

                Assert.IsTrue(employeeAdminDashboardPage.IsDisplayed(), "Employee dashboard did not load correctly.");
                _test.Log(LogStatus.Pass, "Employee dashboard loaded correctly.");
            }
            catch (Exception e)
            {
                HandleException(e, _driver);
                throw;
            }
        }
Пример #7
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;
            }
        }
Пример #8
0
        public void ManageUserAccessPage_LHN_MyDashboard()
        {
            // page objects
            var mainMenu             = new MainMenu(_driver);
            var superSuitNav         = new SuperSuitNavigation(_driver);
            var dashboardPage        = new DashboardPage(_driver);
            var manageUserAccessPage = new ManageUserAccessPage(_driver);
            var expectedMenuItems    = new StringCollection
            {
                "My Dashboard",
                "Applicants",
                "Employees",
                "Job Postings",
                "Forms",
                "Interviews",
                "Users",
                "My Account",
                "Tools",
                "Setup",
                "Marketplace",
                "Additional Resources"
            };

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

                superSuitNav.ClickMyDashboard();
                CollectionAssert.AreEqual(mainMenu.GetNavLinkText(), expectedMenuItems, "Main Menu did not load correctly.");
                _test.Log(LogStatus.Pass, "Main Menu items loaded correctly.");

                Assert.IsTrue(dashboardPage.IsDisplayed(), "Dashboard did not load correctly.");
                _test.Log(LogStatus.Pass, "Dashboard loaded correctly.");
            }
            catch (Exception e)
            {
                HandleException(e, _driver);
                throw;
            }
        }
Пример #9
0
        public void ManageUserAccessPage_LHN()
        {
            // page objects
            var superSuitNav         = new SuperSuitNavigation(_driver);
            var manageUserAccessPage = new ManageUserAccessPage(_driver);

            var expectedMenuItems = new StringCollection
            {
                "My Dashboard",
                "Applicants",
                "Employees",
                "Job Postings",
                "Forms",
                "Interviews",
                "Users",
                "My Account",
                "Tools",
                "Setup",
                "Marketplace"
            };

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

                var navLinkText = superSuitNav.GetNavLinkText();

                foreach (var menuItem in expectedMenuItems)
                {
                    Assert.IsTrue(navLinkText.Contains(menuItem), $"The MUAP nav does not contain {menuItem}");
                }

                _test.Log(LogStatus.Pass, "MUAP Navigation menu items loaded correctly");
            }
            catch (Exception e)
            {
                HandleException(e, _driver);
                throw;
            }
        }
Пример #10
0
        public void ManageUserAccessPage_LHN_MyAccount()
        {
            var mainMenu             = new MainMenu(_driver);
            var superSuitNav         = new SuperSuitNavigation(_driver);
            var manageUserAccessPage = new ManageUserAccessPage(_driver);
            var dashboardPage        = new DashboardPage(_driver);

            var expectedMenuItems = new StringCollection
            {
                "My Folders & Routings",
                "Create A New Folder",
                "Configure My Routings",
                "My Interviews",
                "My Calendars",
                "Edit User Information",
                "Edit Email Templates",
                "User Preferences",
                "Fill Out a New Form",
                "Send a Form"
            };

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

                superSuitNav.ClickMyAccount();
                CollectionAssert.AreEqual(mainMenu.GetNavLinkText(), expectedMenuItems, "My Account menu did not load correctly.");
                _test.Log(LogStatus.Pass, "My Account Menu items loaded correctly.");

                Assert.IsTrue(dashboardPage.IsDisplayed(), "Dashboard did not load correctly.");
                _test.Log(LogStatus.Pass, "Dashboard loaded correctly.");
            }
            catch (Exception e)
            {
                HandleException(e, _driver);
                throw;
            }
        }
Пример #11
0
        public void ManageUserAccessPage_LHN_Forms()
        {
            // page objects
            var mainMenu             = new MainMenu(_driver);
            var superSuitNav         = new SuperSuitNavigation(_driver);
            var manageUserAccessPage = new ManageUserAccessPage(_driver);
            var dashboardPage        = new DashboardPage(_driver);

            var expectedMenuItems = new StringCollection
            {
                "My Forms Inbox",
                "My Sent Forms",
                "Send a Form",
                "Fill Out a New Form",
                "View Submitted Forms By Category",
                "Design Forms and Packets"
            };

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

                superSuitNav.ClickForms();
                CollectionAssert.AreEqual(mainMenu.GetNavLinkText(), expectedMenuItems, "Forms menu did not load correctly.");
                _test.Log(LogStatus.Pass, "Forms Menu items loaded correctly.");

                Assert.IsTrue(dashboardPage.IsDisplayed(), "Dashboard did not load correctly.");
                _test.Log(LogStatus.Pass, "Dashboard loaded correctly.");
            }
            catch (Exception e)
            {
                HandleException(e, _driver);
                throw;
            }
        }
Пример #12
0
        public void ManageUserAccessPage_LHN_Users()
        {
            var mainMenu             = new MainMenu(_driver);
            var superSuitNav         = new SuperSuitNavigation(_driver);
            var manageUserAccessPage = new ManageUserAccessPage(_driver);
            var dashboardPage        = new DashboardPage(_driver);

            var expectedMenuItems = new StringCollection
            {
                "List all users",
                "Create a new user",
                "Upload New Users",
                "Manage User Access",
                "List all groups",
                "Create a new group"
            };

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

                superSuitNav.ClickUsers();
                CollectionAssert.AreEqual(mainMenu.GetNavLinkText(), expectedMenuItems, "Users menu did not load correctly.");
                _test.Log(LogStatus.Pass, "Users Menu items loaded correctly.");

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