Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 19... Línea 19...
19
    And I should see "Student Test1"
19
    And I should see "Student Test1"
20
    And I should see "Student Test2"
20
    And I should see "Student Test2"
21
    And I should see "Student Test3"
21
    And I should see "Student Test3"
22
    And I should see "Student Test4"
22
    And I should see "Student Test4"
23
    And I should see "Student Test5"
23
    And I should see "Student Test5"
-
 
24
    And I set the field "Participants tertiary navigation" to "Enrolment methods"
-
 
25
    And I click on "Edit" "link" in the "Manual enrolments" "table_row"
-
 
26
    And the field "Send course welcome message" matches value "No"
-
 
27
    And I navigate to "Plugins > Enrolments > Manual enrolments" in site administration
-
 
28
    And the field "Send course welcome message" matches value "No"
Línea 24... Línea 29...
24
 
29
 
25
  @javascript
30
  @javascript
26
  Scenario: Prevent creating a testing scenario with no steps to execute
31
  Scenario: Prevent creating a testing scenario with no steps to execute
27
    Given I log in as "admin"
32
    Given I log in as "admin"
Línea 53... Línea 58...
53
    When I upload "admin/tool/generator/tests/fixtures/testscenario/scenario_wrongstep.feature" file to "Feature file" filemanager
58
    When I upload "admin/tool/generator/tests/fixtures/testscenario/scenario_wrongstep.feature" file to "Feature file" filemanager
54
    And I press "Import"
59
    And I press "Import"
55
    Then I should see "The file format is not valid or contains invalid steps"
60
    Then I should see "The file format is not valid or contains invalid steps"
Línea 56... Línea 61...
56
 
61
 
57
  @javascript
62
  @javascript
58
  Scenario: Prevent creating a testing scenario from a scenario outline
63
  Scenario: Create a testing scenario from a scenario outline
59
    Given I log in as "admin"
64
    Given I log in as "admin"
60
    And I navigate to "Development > Create testing scenarios" in site administration
65
    And I navigate to "Development > Create testing scenarios" in site administration
61
    When I upload "admin/tool/generator/tests/fixtures/testscenario/scenario_wrongoutline.feature" file to "Feature file" filemanager
66
    When I upload "admin/tool/generator/tests/fixtures/testscenario/scenario_outline.feature" file to "Feature file" filemanager
-
 
67
    And I press "Import"
-
 
68
    And I should see "Example: creating test scenarios using an outline (1)"
-
 
69
    And I should see "Example: creating test scenarios using an outline (2)"
-
 
70
    And I should see "Example: creating test scenarios using an outline (3)"
-
 
71
    Then I am on the "C1" "Course" page
-
 
72
    And I should see "Course 1" in the "page-header" "region"
-
 
73
    And I am on the "C2" "Course" page
-
 
74
    And I should see "Course 2" in the "page-header" "region"
-
 
75
    And I am on the "C3" "Course" page
-
 
76
    And I should see "Course 3" in the "page-header" "region"
-
 
77
 
-
 
78
  @javascript
-
 
79
  Scenario: Run cleanup steps after creating a testing scenario
-
 
80
    Given I log in as "admin"
-
 
81
    And I navigate to "Development > Create testing scenarios" in site administration
-
 
82
    And I upload "admin/tool/generator/tests/fixtures/testscenario/scenario_cleanup.feature" file to "Feature file" filemanager
62
    And I press "Import"
83
    And I press "Import"
-
 
84
    And I should see "Scenario: Create course content to cleanup later"
-
 
85
    And I navigate to "Courses > Manage courses and categories" in site administration
-
 
86
    And I should see "Course cleanup" in the "course-listing" "region"
-
 
87
    And I navigate to "Users > Accounts > Browse list of users" in site administration
-
 
88
    And I should see "Teacher Test1"
-
 
89
    And I navigate to "Development > Create testing scenarios" in site administration
-
 
90
    When I upload "admin/tool/generator/tests/fixtures/testscenario/scenario_cleanup.feature" file to "Feature file" filemanager
-
 
91
    And I set the field "Execute" to "Cleanup scenarios"
63
    Then I should see "Scenario outlines are not supported"
92
    And I press "Import"
-
 
93
    And I should see "the course \"Course cleanup\" is deleted"
-
 
94
    And I should see "the user \"cleanteacher\" is deleted"
-
 
95
    Then I navigate to "Courses > Manage courses and categories" in site administration
-
 
96
    And I should not see "Course cleanup" in the "course-listing" "region"
-
 
97
    And I navigate to "Users > Accounts > Browse list of users" in site administration
-
 
98
    And I should not see "Teacher Test1"
-
 
99
 
-
 
100
  Scenario: All available steps are listed in the tool to create testing scenarios
-
 
101
    Given I log in as "admin"
-
 
102
    When I navigate to "Development > Create testing scenarios" in site administration
-
 
103
    Then I should see "This is the list of steps that can be used in the test scenario feature file"
-
 
104
    And I should see "And the following \"activities\" exist"
-
 
105
    And I should see "And \"5\" \"course enrolments\" exist with the following data"
-
 
106
    And I should see "And the following \"course\" exists"
-
 
107
    And I should see "And the following config values are set as admin"
-
 
108
    And I should see "I enable \"subsection\" \"mod\" plugin"
-
 
109
    And I should see "I disable \"page\" \"mod\" plugin"
-
 
110
    And I should see "And the course \"Course test\" is deleted"