forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bank_add_default_shared.feature
26 lines (24 loc) · 1.11 KB
/
bank_add_default_shared.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
@core @core_question
Feature: Add a default question bank
In order to manage shared questions
As a teacher
I need to create a default question bank
Background:
Given the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Terry1 | Teacher1 | [email protected] |
And the following "courses" exist:
| fullname | shortname | category |
| Course 1 | C1 | 0 |
And the following "course enrolments" exist:
| user | course | role |
| teacher1 | C1 | editingteacher |
Scenario: Add a default question bank to a course
Given I am on the "C1" "Course" page logged in as "teacher1"
When I navigate to "Question banks" in current page administration
Then I should see "This course does not have any question banks yet"
And I should see "Add"
And I click on "Create default question bank" "button"
But I should not see "This course does not have any question banks yet"
And I should see "Default course question bank created"
And I should see "Course 1 course question bank"