Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
@core @core_authFeature: AuthenticationIn order to validate my credentials in the systemAs a userI need to log into the systemScenario: Log in with the predefined admin user with Javascript disabledGiven I log in as "admin"Then I should see "You are logged in as Admin User" in the "page-footer" "region"@javascriptScenario: Log in with the predefined admin user with Javascript enabledGiven I log in as "admin"Then I should see "You are logged in as Admin User" in the "page-footer" "region"Scenario: Log in as an existing admin user filling the formGiven the following "users" exist:| username | password | firstname | lastname | email || testuser | testuser | Test | User | moodle@example.com |And I am on site homepageWhen I follow "Log in"And I set the field "Username" to "testuser"And I set the field "Password" to "testuser"And I press "Log in"Then I should see "You are logged in as" in the "page-footer" "region"Scenario: Log in as an unexisting user filling the formGiven the following "users" exist:| username | password | firstname | lastname | email || testuser | testuser | Test | User | moodle@example.com |And I am on site homepageWhen I follow "Log in"And I set the field "Username" to "testuser"And I set the field "Password" to "unexisting"And I press "Log in"Then I should see "Invalid login, please try again"Scenario: Log out using the Log out linkGiven I log in as "admin"When I click on "Log out" "link" in the "#page-footer" "css_element"Then I should see "You are not logged in" in the "page-footer" "region"@javascript @accessibilityScenario: Login page must be accessibleWhen I am on site homepage# The following tests are all provided to ensure that the accessibility tests themselves are tested.# In normal tests only one of the following is required.Then the page should meet accessibility standardsAnd the page should meet "wcag131, wcag141, wcag412" accessibility standardsAnd the page should meet accessibility standards with "wcag131, wcag141, wcag412" extra testsAnd I follow "Log in"And the page should meet accessibility standardsAnd the page should meet "wcag131, wcag141, wcag412" accessibility standardsAnd the page should meet accessibility standards with "wcag131, wcag141, wcag412" extra tests@javascript @accessibilityScenario: The login page must have sufficient colour contrastGiven the following config values are set as admin:| custommenuitems | -This is a custom item\|/customurl/ |When I am on site homepageThen the page should meet "wcag143" accessibility standardsAnd the page should meet accessibility standards with "wcag143" extra testsScenario: Alternate login URL can be bypassedGiven the following config values are set as admin:| alternateloginurl | https://www.google.com/ |And I am on site homepageWhen I visit "/login/index.php?loginredirect=0"Then I should see "Log in to Acceptance test site"