mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
MDL-79788 tag: convert module creation of tags to generators.
We don't need to use the tags UI directly for creating tags in module scenarios, because it's slow and prone to error in case of interface changes.
This commit is contained in:
parent
d057af03e9
commit
27ca0daf87
@ -40,13 +40,11 @@ Feature: Edited book chapters handle tags correctly
|
||||
|
||||
@javascript
|
||||
Scenario: Book chapter edition of standard tags works as expected
|
||||
Given I log in as "admin"
|
||||
And I change window size to "large"
|
||||
And I navigate to "Appearance > Manage tags" in site administration
|
||||
And I follow "Default collection"
|
||||
And I follow "Add standard tags"
|
||||
And I set the field "Enter comma-separated list of new tags" to "OT1, OT2, OT3"
|
||||
And I press "Continue"
|
||||
Given the following "tags" exist:
|
||||
| name | isstandard |
|
||||
| OT1 | 1 |
|
||||
| OT2 | 1 |
|
||||
| OT3 | 1 |
|
||||
And I am on the "Test book" "book activity" page logged in as teacher1
|
||||
And I open the autocomplete suggestions list
|
||||
And I should see "OT1" in the ".form-autocomplete-suggestions" "css_element"
|
||||
|
@ -38,13 +38,11 @@ Feature: Edited forum posts handle tags correctly
|
||||
|
||||
@javascript
|
||||
Scenario: Forum post edition of standard tags works as expected
|
||||
Given I log in as "admin"
|
||||
And I change window size to "large"
|
||||
And I navigate to "Appearance > Manage tags" in site administration
|
||||
And I follow "Default collection"
|
||||
And I follow "Add standard tags"
|
||||
And I set the field "Enter comma-separated list of new tags" to "OT1, OT2, OT3"
|
||||
And I press "Continue"
|
||||
Given the following "tags" exist:
|
||||
| name | isstandard |
|
||||
| OT1 | 1 |
|
||||
| OT2 | 1 |
|
||||
| OT3 | 1 |
|
||||
And I am on the "Test forum name" "forum activity" page logged in as teacher1
|
||||
And I click on "Add discussion topic" "link"
|
||||
And I click on "Advanced" "button"
|
||||
|
@ -40,15 +40,12 @@ Feature: Edited glossary entries handle tags correctly
|
||||
Then I should see "Cool" in the ".form-autocomplete-selection" "css_element"
|
||||
|
||||
Scenario: Glossary entry edition of standard tags works as expected
|
||||
Given I log in as "admin"
|
||||
And I change window size to "large"
|
||||
And I navigate to "Appearance > Manage tags" in site administration
|
||||
And I follow "Default collection"
|
||||
And I follow "Add standard tags"
|
||||
And I set the field "Enter comma-separated list of new tags" to "OT1, OT2, OT3"
|
||||
And I press "Continue"
|
||||
And I log out
|
||||
Given I am on the "Test glossary" "glossary activity" page logged in as teacher1
|
||||
Given the following "tags" exist:
|
||||
| name | isstandard |
|
||||
| OT1 | 1 |
|
||||
| OT2 | 1 |
|
||||
| OT3 | 1 |
|
||||
And I am on the "Test glossary" "glossary activity" page logged in as teacher1
|
||||
And I press "Add entry"
|
||||
And I expand all fieldsets
|
||||
And I open the autocomplete suggestions list
|
||||
|
@ -41,15 +41,12 @@ Feature: Edited wiki pages handle tags correctly
|
||||
|
||||
@javascript
|
||||
Scenario: Wiki page edition of standard tags works as expected
|
||||
Given I log in as "admin"
|
||||
And I change window size to "large"
|
||||
And I navigate to "Appearance > Manage tags" in site administration
|
||||
And I follow "Default collection"
|
||||
And I follow "Add standard tags"
|
||||
And I set the field "Enter comma-separated list of new tags" to "OT1, OT2, OT3"
|
||||
And I press "Continue"
|
||||
And I log out
|
||||
Given I am on the "Test wiki name" "wiki activity" page logged in as student1
|
||||
Given the following "tags" exist:
|
||||
| name | isstandard |
|
||||
| OT1 | 1 |
|
||||
| OT2 | 1 |
|
||||
| OT3 | 1 |
|
||||
And I am on the "Test wiki name" "wiki activity" page logged in as student1
|
||||
And I press "Create page"
|
||||
And I open the autocomplete suggestions list
|
||||
And I should see "OT1" in the ".form-autocomplete-suggestions" "css_element"
|
||||
|
Loading…
x
Reference in New Issue
Block a user