-
Notifications
You must be signed in to change notification settings - Fork 11
/
add.feature
51 lines (46 loc) · 2.76 KB
/
add.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
@qtype @qtype_essayautograde
Feature: Test creating an Essay autograde question
As a teacher
In order to test my students
I need to be able to create an Essay autograde question
Background:
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | T1 | Teacher1 | teacher1@moodle.com |
And the following "courses" exist:
| fullname | shortname | category |
| Course 1 | C1 | 0 |
And the following "course enrolments" exist:
| user | course | role |
| teacher1 | C1 | editingteacher |
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I navigate to "Question bank" in current page administration
Scenario: Create an Essay autograde question with Response format set to 'HTML editor'
When I add a "Essay (auto-grade)" question filling the form with:
| Question name | essayautograde-001 |
| Question text | Write an essayautograde with 500 words. |
| General feedback | This is general feedback |
| Response format | HTML editor |
Then I should see "essayautograde-001"
Scenario: Create an Essay autograde question with Response format set to 'HTML editor with file picker'
When I add a "Essay (auto-grade)" question filling the form with:
| Question name | essayautograde-002 |
| Question text | Write an essayautograde with 500 words. |
| General feedback | This is general feedback |
| Response format | HTML editor with file picker |
Then I should see "essayautograde-002"
Scenario: Create an Essay autograde question with Response format set to 'plain'
When I add a "Essay (auto-grade)" question filling the form with:
| Question name | essayautograde-003 |
| Question text | Write an essayautograde with 500 words. |
| General feedback | This is general feedback |
| Response format | Plain |
Then I should see "essayautograde-003"
Scenario: Create an Essay autograde question with Response format set to 'monospaced'
When I add a "Essay (auto-grade)" question filling the form with:
| Question name | essayautograde-004 |
| Question text | Write an essayautograde with 500 words. |
| General feedback | This is general feedback |
| Response format | Plain text, monospaced font |
Then I should see "essayautograde-004"