Skip to content

Commit

Permalink
MDL-32105 mod_glossary: Improve behat test
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Jan 3, 2023
1 parent 72f4f8e commit a9abcf1
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions mod/glossary/tests/behat/create_entry.feature
@@ -1,7 +1,8 @@
@mod @mod_glossary @javascript
Feature: Create a glossary entry. As a user
I should be able to enter an entry without
using reserved keywords
@mod @mod_glossary
Feature: Create a glossary entry.
In order to create glossary entries
As a user
I should be able to enter an entry without using reserved keywords

Background:
Given the following "users" exist:
Expand All @@ -15,16 +16,14 @@ Feature: Create a glossary entry. As a user
| user | course | role |
| teacher1 | C1 | editingteacher |
| student1 | C1 | student |
And I log in as "teacher1"
And I am on "Course 1" course homepage with editing mode on
And I add a "Glossary" to section "1" and I fill the form with:
| Name | Test glossary |
| Description | A glossary about dreams! |
And I log out
And the following "activity" exists:
| activity | glossary |
| course | C1 |
| name | Test glossary |

Scenario: Glossary entry edition of custom tags works as expected
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:
| Concept | Dummy first entry |
| Definition | Dream is the start of a journey |
Expand Down

0 comments on commit a9abcf1

Please sign in to comment.