Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@core @core_admin
2
Feature: Outgoing mail configuration
3
  In order to send email from Moodle
4
  As a Moodle administrator
5
  I need to set mail configuration
6
 
7
  Background:
8
    Given I log in as "admin"
9
 
10
  Scenario: SMTP Auth Type without OAuth 2 service setup yet
11
    Given I navigate to "Server > Email > Outgoing mail configuration" in site administration
12
    And I should not see "XOAUTH2" in the "SMTP Auth Type" "select"
13
    And I should see "LOGIN" in the "SMTP Auth Type" "select"
14
    And I should see "PLAIN" in the "SMTP Auth Type" "select"
15
 
16
  Scenario: SMTP Auth Type with OAuth 2 service setup
17
    Given I navigate to "Server > OAuth 2 services" in site administration
18
    And I press "Google"
19
    And I should see "Create new service: Google"
20
    And I set the following fields to these values:
21
      | Name          | Testing service   |
22
      | Client ID     | thisistheclientid |
23
      | Client secret | supersecret       |
24
    And I press "Save changes"
25
    When I navigate to "Server > Email > Outgoing mail configuration" in site administration
26
    Then I should see "XOAUTH2" in the "SMTP Auth Type" "select"
27
    And I should see "LOGIN" in the "SMTP Auth Type" "select"
28
    And I should see "PLAIN" in the "SMTP Auth Type" "select"
29
    And I should see "Testing service" in the "OAuth 2 service" "select"