mirrored from git://git.moodle.org/moodle.git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge branch 'MDL-62532-35' of git://github.com/rezaies/moodle into M…
…OODLE_35_STABLE
- Loading branch information
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
@core @core_question @javascript | ||
Feature: The questions can be tagged | ||
In order to tag questions | ||
As a teacher | ||
I want to see the standard tags in the tags field | ||
|
||
Background: | ||
Given the following "users" exist: | ||
| username | firstname | lastname | email | | ||
| teacher1 | Teacher | 1 | teacher1@example.com | | ||
And the following "courses" exist: | ||
| fullname | shortname | format | | ||
| Course 1 | C1 | weeks | | ||
And the following "course enrolments" exist: | ||
| user | course | role | | ||
| teacher1 | C1 | editingteacher | | ||
And the following "tags" exist: | ||
| name | isstandard | | ||
| foo | 1 | | ||
| bar | 1 | | ||
|
||
Scenario: The tags autocomplete should include standard tags | ||
When I log in as "teacher1" | ||
And I am on "Course 1" course homepage | ||
And I navigate to "Questions" node in "Course administration > Question bank" | ||
And I press "Create a new question ..." | ||
And I set the field "item_qtype_truefalse" to "1" | ||
And I press "Add" | ||
And I expand all fieldsets | ||
And I open the autocomplete suggestions list | ||
Then "foo" "autocomplete_suggestions" should exist | ||
And "bar" "autocomplete_suggestions" should exist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters