Example #1
0
        public void Sidekick_AccountSettings_from_Recruit()
        {
            // page objects
            var toolbar             = new SidekickToolbar(Driver);
            var accountSettingsPage = new IdmAccountSettingsPage(Driver);
            var dashboard           = new DashboardPage(Driver);

            try
            {
                new LoginWorkflows(Driver).LoginAsSuperUser();
                toolbar.ClickUserMenu();
                toolbar.UserMenuPage.ClickAccountSettings();
                test.Log(LogStatus.Info, "In the toolbar, click on User Name > Account Settings ");

                Assert.IsTrue(accountSettingsPage.IsDisplayed(), "The account settings page is not displayed");
                test.Log(LogStatus.Pass, "The account settings page is displayed");

                accountSettingsPage.ClickBackToRecruit();
                test.Log(LogStatus.Info, "Click the \"Back to Recruiting & Hiring\" button");
                Assert.IsTrue(dashboard.IsDisplayed(), "R&H is not displayed");
                test.Log(LogStatus.Pass, "R&H is displayed");
            }
            catch (Exception e)
            {
                HandleException(e, Driver);
                throw;
            }
        }
        public void Jefferson_Switch_to_Absence()
        {
            var loginPage       = new FederatedLoginPage(Driver);
            var toolbar         = new SidekickToolbar(Driver);
            var appSelectorPage = new AppSelectorPage(Driver);

            const string absenceMgmtName = "Absence Management";

            try  //Contains Contents of Test
            {
                // login as a user with access to multiple applications
                loginPage.Login(LoginData.SuperUserName, LoginData.SuperUserPassword);
                test.Log(LogStatus.Pass, $"Login using {LoginData.SuperUserName} / {LoginData.SuperUserPassword}");

                appSelectorPage.SelectApp(@"Recruiting & Hiring");
                test.Log(LogStatus.Pass, "Select Recruiting & Hiring from the selection screen");

                // the BaseFramework waits are not enough to stop this from failing...
                Thread.Sleep(TimeSpan.FromSeconds(3));

                toolbar.SwitchApps(absenceMgmtName);

                Assert.AreEqual(toolbar.ApplicationTitle, absenceMgmtName, "Sidekick does not contain the correct application name");
                test.Log(LogStatus.Pass, $"Successfully switch to {absenceMgmtName}");
            }
            catch (Exception e) //On Error Do
            {
                HandleException(e, Driver);
                throw;
            }
        }
Example #3
0
        [Ignore] // TODO wait for environments to become more stable
        public void Sidekick_OrgSwitch_To_EC()
        {
            // page objects
            var toolbar        = new SidekickToolbar(Driver);
            var employeeCenter = new EmployeeCenterMainPage(Driver);

            try  //Contains Contents of Test
            {
                new LoginWorkflows(Driver).LoginAsSuperUser();
                toolbar.SwitchOrgs("North Branford");

                Assert.IsTrue(employeeCenter.IsDisplayed());
                test.Log(LogStatus.Pass, "The EC page is displayed");
            }
            catch (Exception e) //On Error Do
            {
                HandleException(e, Driver);
                throw;
            }
        }
Example #4
0
        [Ignore] // org switcher may not always be available depending on user
        public void Sidekick_OrgSwitch_Opens()
        {
            // page objects
            var toolbar = new SidekickToolbar(Driver);

            try  //Contains Contents of Test
            {
                new LoginWorkflows(Driver).LoginAsSuperUser();
                toolbar.ClickOrgSwitcher();
                test.Log(LogStatus.Pass, "Click the org switcher");

                Assert.IsTrue(toolbar.OrgSwitcherIsDisplayed());
                test.Log(LogStatus.Pass, "The org switcher opened");
            }
            catch (Exception e) //On Error Do
            {
                HandleException(e, Driver);
                throw;
            }
        }
        [Ignore] // PG install does not have sidekick enabled
        public void Jefferson_Switch_to_PG()
        {
            var loginPage       = new FederatedLoginPage(Driver);
            var toolbar         = new SidekickToolbar(Driver);
            var appSelectorPage = new AppSelectorPage(Driver);

            const string pgName = "Professional Growth";

            // Creating a new user here because the user in JeffersonLoginData does not have access to other applications.
            var testUser = new UserGenerator
            {
                UserName = "******",
                Password = "******"
            };

            try  //Contains Contents of Test
            {
                // login as a user with access to multiple applications
                loginPage.Login(testUser.UserName, testUser.Password);
                test.Log(LogStatus.Pass, $"Login using {testUser.UserName} / {testUser.Password}");

                appSelectorPage.SelectApp(@"Recruiting & Hiring");
                test.Log(LogStatus.Pass, "Select Recruiting & Hiring from the selection screen");

                // the BaseFramework waits are not enough to stop this from failing...
                Thread.Sleep(TimeSpan.FromSeconds(3));

                toolbar.SwitchApps(pgName);

                Assert.AreEqual(toolbar.ApplicationTitle, pgName, "Sidekick does not contain the correct application name");
                test.Log(LogStatus.Pass, $"Successfully switch to {pgName}");
            }
            catch (Exception e) //On Error Do
            {
                HandleException(e, Driver);
                throw;
            }
        }
Example #6
0
        public void Sidekick_AccountSettings_from_SharedApplicationAccessPage()
        {
            // page objects
            var toolbar                     = new SidekickToolbar(Driver);
            var accountSettingsPage         = new IdmAccountSettingsPage(Driver);
            var mainMenu                    = new MainMenu(Driver);
            var usersMenu                   = new SubMenuUsers(Driver);
            var sharedApplicationAccessPage = new ManageUserAccessPage(Driver);

            try
            {
                new LoginWorkflows(Driver).LoginAsSuperUser();
                mainMenu.ClickUsers();
                usersMenu.ClickManageUserAccess();
                test.Log(LogStatus.Info, "Navigate to Users > Manage User Access");

                sharedApplicationAccessPage.WaitForPageToLoad();

                toolbar.ClickUserMenu();
                toolbar.UserMenuPage.ClickAccountSettings();
                test.Log(LogStatus.Info, "In the toolbar, click on User Name > Account Settings ");

                Assert.IsTrue(accountSettingsPage.IsDisplayed(), "The account settings page is not displayed");
                test.Log(LogStatus.Pass, "The account settings page is displayed");

                accountSettingsPage.ClickBackToRecruit();
                test.Log(LogStatus.Info, "Click the \"Back to Recruiting & Hiring\" button");
                Assert.IsTrue(sharedApplicationAccessPage.IsDisplayed(), "The SAAP is not displayed");
                test.Log(LogStatus.Pass, "The SAAP is displayed");
            }
            catch (Exception e) //On Error Do
            {
                HandleException(e, Driver);
                throw;
            }
        }