-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstance_create.feature
27 lines (25 loc) · 1.13 KB
/
instance_create.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
@mod @mod_offlinequiz @adding @amc
Feature: In a course, a teacher should be able to add a new offlinequiz
In order to add a new offlinequiz
As a teacher
I need to be able to add a new offlinequiz and save it correctly.
Background:
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | 1 | [email protected] |
And the following "courses" exist:
| fullname | shortname | category | groupmode |
| Course 1 | C1 | 0 | 0|
And the following "course enrolments" exist:
| user | course | role |
| teacher1 | C1 | editingteacher |
@javascript
Scenario: Add an offlinequiz instance
Given I log in as "teacher1"
And I am on "Course 1" course homepage
And I turn editing mode on
When I add a "Offline Quiz" to section "2" and I fill the form with:
| Offline quiz name | Add an offlinequiz to the current course |
| Description | Add an offlinequiz to the current course (Description) |
And I follow "Add an offlinequiz to the current course"
Then I should see "Add an offlinequiz to the current course (Description)"