Skip to content

Commit 499bdb1

Browse files
committedNov 21, 2019
fix behat
1 parent b2fd542 commit 499bdb1

4 files changed

+13
-9
lines changed
 

‎tests/behat/createforms_docx.feature

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@mod @mod_offlinequiz @createforms
1+
@mod @mod_offlinequiz @createforms @amc
22
Feature: Within a moodle instance, a teacher should be able to create the question forms of the offline quiz as DOCX.
33
In order to create the forms of an offline quiz
44
As a teacher
@@ -40,4 +40,5 @@ Feature: Within a moodle instance, a teacher should be able to create the questi
4040
And I follow "Download forms"
4141
Then I should see "Question form for group A (DOCX)"
4242
Then I should see "Answer form for group A"
43-
Then I should see "Correction form for group A"
43+
Then I should see "Correction form for group A"
44+

‎tests/behat/createforms_latex.feature

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
@mod @mod_offlinequiz @createforms @javascript
1+
@mod @mod_offlinequiz @createforms @amc
22
Feature: Within a moodle instance, a teacher should be able to create the question form of the offline quiz as LATEX.
33
In order to create the forms of an offline quiz
44
As a teacher
55
I need to be able to add an offline quiz, add some existing questions and finally create the question forms as LATEX.
66

77
Background:
8-
Given the following "users" exist:
8+
Given the following "users" exist:
99
| username | firstname | lastname | email |
1010
| teacher1 | Teacher | 1 | teacher1@example.com |
1111
And the following "courses" exist:
@@ -21,6 +21,7 @@ Feature: Within a moodle instance, a teacher should be able to create the questi
2121
| questioncategory | qtype | name | template |
2222
| Test questions | multichoice | Multi-choice-001 | two_of_four |
2323

24+
@javascript
2425
Scenario: Login as a teacher, add a new offline quiz to a course and there some multiple choice questions. Then create the question forms as LATEX for the offline quiz.
2526
Given I log in as "teacher1"
2627
And I am on "Course 1" course homepage
@@ -39,4 +40,4 @@ Feature: Within a moodle instance, a teacher should be able to create the questi
3940
And I follow "Download forms"
4041
Then I should see "Question form for group A (LATEX)"
4142
Then I should see "Answer form for group A"
42-
Then I should see "Correction form for group A"
43+
Then I should see "Correction form for group A"

‎tests/behat/createforms_pdf.feature

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@mod @mod_offlinequiz @createforms @javascript
1+
@mod @mod_offlinequiz @createforms @amc
22
Feature: Within a moodle instance, a teacher should be able to create all forms of the offline quiz as PDF.
33
In order to create the forms of an offline quiz
44
As a teacher
@@ -21,6 +21,7 @@ Feature: Within a moodle instance, a teacher should be able to create all forms
2121
| questioncategory | qtype | name | template |
2222
| Test questions | multichoice | Multi-choice-001 | two_of_four |
2323

24+
@javascript
2425
Scenario: Login as a teacher, add a new offline quiz to a course and there some multiple choice questions. Then create the forms as PDF for the offline quiz.
2526
Given I log in as "teacher1"
2627
And I am on "Course 1" course homepage
@@ -38,4 +39,4 @@ Feature: Within a moodle instance, a teacher should be able to create all forms
3839
And I follow "Download forms"
3940
Then I should see "Question form for group A"
4041
Then I should see "Answer form for group A"
41-
Then I should see "Correction form for group A"
42+
Then I should see "Correction form for group A"

‎tests/behat/instance_setting_numberofgroups.feature

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@mod @mod_offlinequiz @createforms @ javascript
1+
@mod @mod_offlinequiz @createforms @amc
22
Feature: Within a moodle instance, a teacher should be able to create all forms of the offline quiz for 6 groups.
33
In order to create the forms of an offline quiz
44
As a teacher
@@ -21,6 +21,7 @@ Feature: Within a moodle instance, a teacher should be able to create all forms
2121
| questioncategory | qtype | name | template |
2222
| Test questions | multichoice | Multi-choice-001 | two_of_four |
2323

24+
@javascript
2425
Scenario: Login as a teacher, add a new offlinequiz to a course and set the value for groups to 6. Then add there some multiple choice questions and create the forms for all groups within the offline quiz.
2526
Given I log in as "teacher1"
2627
And I am on "Course 1" course homepage
@@ -85,4 +86,4 @@ Feature: Within a moodle instance, a teacher should be able to create all forms
8586
Then I should see "Correction form for group C"
8687
Then I should see "Correction form for group D"
8788
Then I should see "Correction form for group E"
88-
Then I should see "Correction form for group F"
89+
Then I should see "Correction form for group F"

0 commit comments

Comments
 (0)
Please sign in to comment.