mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-32105 mod_glossary: Improve behat test
This commit is contained in:
parent
623c8c1906
commit
03b79c4921
1 changed files with 10 additions and 11 deletions
|
@ -1,7 +1,8 @@
|
||||||
@mod @mod_glossary @javascript
|
@mod @mod_glossary
|
||||||
Feature: Create a glossary entry. As a user
|
Feature: Create a glossary entry.
|
||||||
I should be able to enter an entry without
|
In order to create glossary entries
|
||||||
using reserved keywords
|
As a user
|
||||||
|
I should be able to enter an entry without using reserved keywords
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the following "users" exist:
|
Given the following "users" exist:
|
||||||
|
@ -15,16 +16,14 @@ Feature: Create a glossary entry. As a user
|
||||||
| user | course | role |
|
| user | course | role |
|
||||||
| teacher1 | C1 | editingteacher |
|
| teacher1 | C1 | editingteacher |
|
||||||
| student1 | C1 | student |
|
| student1 | C1 | student |
|
||||||
And I log in as "teacher1"
|
And the following "activity" exists:
|
||||||
And I am on "Course 1" course homepage with editing mode on
|
| activity | glossary |
|
||||||
And I add a "Glossary" to section "1" and I fill the form with:
|
| course | C1 |
|
||||||
| Name | Test glossary |
|
| name | Test glossary |
|
||||||
| Description | A glossary about dreams! |
|
|
||||||
And I log out
|
|
||||||
|
|
||||||
Scenario: Glossary entry edition of custom tags works as expected
|
Scenario: Glossary entry edition of custom tags works as expected
|
||||||
Given I am on the "Test glossary" "glossary activity" page logged in as "teacher1"
|
Given I am on the "Test glossary" "glossary activity" page logged in as "teacher1"
|
||||||
And I press "Add entry"
|
When I press "Add entry"
|
||||||
And I set the following fields to these values:
|
And I set the following fields to these values:
|
||||||
| Concept | Dummy first entry |
|
| Concept | Dummy first entry |
|
||||||
| Definition | Dream is the start of a journey |
|
| Definition | Dream is the start of a journey |
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue