Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@core @verify_age_location
2
Feature: Test the 'Digital age of consent verification' feature works.
3
  In order to self-register on the site
4
  As an user
5
  I need be to be over the age of digital consent
6
 
7
  Background:
8
    Given the following config values are set as admin:
9
      | registerauth | email |
10
      | agedigitalconsentverification | 1 |
11
 
12
  Scenario: User that is not considered a digital minor attempts to self-register on the site.
13
    # Try to access the sign up page.
14
    Given I am on homepage
15
    When I click on "Log in" "link" in the ".logininfo" "css_element"
16
    And I click on "Create new account" "link"
17
    Then I should see "Age and location verification"
18
    When I set the field "What is your age?" to "16"
19
    And I set the field "In which country do you live?" to "DZ"
20
    And I press "Proceed"
21
    Then I should see "New account"
22
    And I should see "Username"
23
    # Try to access the sign up page again.
24
    When I press "Cancel"
25
    And I click on "Create new account" "link"
26
    Then I should see "New account"
27
    And I should see "Username"
28
 
29
  Scenario: User that is considered a digital minor attempts to self-register on the site.
30
    # Try to access the sign up page.
31
    Given I am on homepage
32
    When I click on "Log in" "link" in the ".logininfo" "css_element"
33
    And I click on "Create new account" "link"
34
    Then I should see "Age and location verification"
35
    When I set the field "What is your age?" to "12"
36
    And I set the field "In which country do you live?" to "AT"
37
    And I press "Proceed"
38
    Then I should see "You are too young to create an account on this site."
39
    And I should see "Please ask your parent/guardian to contact:"
40
    # Try to access the sign up page again.
41
    When I click on "Back to the site home" "link"
42
    And I click on "Log in" "link" in the ".logininfo" "css_element"
43
    And I click on "Create new account" "link"
44
    Then I should see "You are too young to create an account on this site."
45
    And I should see "Please ask your parent/guardian to contact:"