AutorÃa | Ultima modificación | Ver Log |
@tool @tool_messageinboundFeature: Incoming mail configurationIn order to receive email from externalAs a Moodle administratorI need to set mail configurationBackground:Given I log in as "admin"Scenario: Incoming mail server settings without OAuth 2 service setup yetGiven I navigate to "Server > Email > Incoming mail configuration" in site administrationAnd "OAuth 2 service" "select" should not existScenario: Incoming mail server settings with OAuth 2 service setupGiven I navigate to "Server > OAuth 2 services" in site administrationAnd I press "Google"And I should see "Create new service: Google"And I set the following fields to these values:| Name | Testing service || Client ID | thisistheclientid || Client secret | supersecret |And I press "Save changes"When I navigate to "Server > Email > Incoming mail configuration" in site administrationThen "OAuth 2 service" "select" should existAnd I should see "Testing service" in the "OAuth 2 service" "select"@javascriptScenario: Check character limitations of mailbox nameWhen I navigate to "Server > Email > Incoming mail configuration" in site administrationAnd I set the field "Mailbox name" to "frogfrogfrogfrog"Then I should see "Maximum of 15 characters"And the "disabled" attribute of "form#adminsettings button[type='submit']" "css_element" should contain "true"And I set the field "Mailbox name" to "frogfrogfrogfro"And I should not see "Maximum of 15 characters"And the "disabled" attribute of "form#adminsettings button[type='submit']" "css_element" should not be set