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 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; } }