1441 |
ariadna |
1 |
@core @core_question
|
|
|
2 |
Feature: Add a default question bank
|
|
|
3 |
In order to manage shared questions
|
|
|
4 |
As a teacher
|
|
|
5 |
I need to create a default question bank
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given the following "users" exist:
|
|
|
9 |
| username | firstname | lastname | email |
|
|
|
10 |
| teacher1 | Terry1 | Teacher1 | teacher1@example.com |
|
|
|
11 |
And the following "courses" exist:
|
|
|
12 |
| fullname | shortname | category |
|
|
|
13 |
| Course 1 | C1 | 0 |
|
|
|
14 |
And the following "course enrolments" exist:
|
|
|
15 |
| user | course | role |
|
|
|
16 |
| teacher1 | C1 | editingteacher |
|
|
|
17 |
|
|
|
18 |
Scenario: Add a default question bank to a course
|
|
|
19 |
Given I am on the "C1" "Course" page logged in as "teacher1"
|
|
|
20 |
When I navigate to "Question banks" in current page administration
|
|
|
21 |
Then I should see "This course doesn't have any question banks yet."
|
|
|
22 |
And I should see "Add"
|
|
|
23 |
And I click on "Create default question bank" "button"
|
|
|
24 |
But I should not see "This course doesn't have any question banks yet."
|
|
|
25 |
And I should see "Default question bank created."
|
|
|
26 |
And I should see "Course 1 course question bank"
|