Esempio n. 1
0
        /// <summary>
        /// ENVIRONMENT REQUIREMENTS:
        ///     1. Paginated UI feature enabled
        ///     2. Multiple auth options available (including external)
        ///     3. User configured for external auth
        /// </summary>
        /// <param name="driver"></param>
        static void HintIdpSignOn_WithOptions_External(IWebDriver driver, TaskConfiguration configuration)
        {
            // Perform UI Operations
            IdpPageTasks.GoToIdpSignOnPageWithLoginHint(driver, configuration);
            IdpPageTasks.ClickSignInOnIdpPage(driver, configuration);
            OptionsPageTasks.SelectExternalOnOptionPage(driver, configuration);
            ExternalAuthTasks.EnterChallengeAnswers(driver, configuration);

            // Perform test validation
            var success = IdpPageTasks.ValidateSignedIn(driver, configuration);

            Debug.Assert(success);

            // Cleanup
            driver.Quit();
        }
Esempio n. 2
0
        /// <summary>
        /// ENVIRONMENT REQUIREMENTS:
        ///     1. Paginated UI feature enabled
        ///     2. Multiple auth options available (including external)
        /// </summary>
        /// <param name="driver"></param>
        static void HintIdpSignOn_WithOptions_Password_ChangeUser(IWebDriver driver, TaskConfiguration configuration)
        {
            // Perform UI Operations
            IdpPageTasks.GoToIdpSignOnPageWithLoginHint(driver, configuration);
            IdpPageTasks.ClickSignInOnIdpPage(driver, configuration);
            PaginatedFormsTasks.OptionsPageBackNavigate(driver, configuration);
            FormsPageTasks.ClearUsername(driver, configuration);
            FormsPageTasks.EnterCorrectUsername(driver, configuration);
            OptionsPageTasks.SelectFormsOnOptionPage(driver, configuration);
            FormsPageTasks.EnterCorrectPassword(driver, configuration);

            // Perform test validation
            var success = IdpPageTasks.ValidateSignedIn(driver, configuration);

            Debug.Assert(success);

            // Cleanup
            driver.Quit();
        }