Acceptance testing/Compatibility changes: Difference between revisions
David Mudrak (talk | contribs) m (Text replacement - "</code>" to "</syntaxhighlight>") |
|||
Line 29: | Line 29: | ||
And I follow "Course 1" | And I follow "Course 1" | ||
Then I should see "Topic 1" | Then I should see "Topic 1" | ||
</ | </syntaxhighlight> | ||
|- | |- | ||
|After | |After | ||
Line 37: | Line 37: | ||
And I am on "Course 1" course homepage | And I am on "Course 1" course homepage | ||
Then I should see "Topic 1" | Then I should see "Topic 1" | ||
</ | </syntaxhighlight> | ||
|} | |} | ||
<b>Why did this change?</b> | <b>Why did this change?</b> | ||
Line 69: | Line 69: | ||
And I follow "Course 1" | And I follow "Course 1" | ||
When I click on "Edit settings" "link" in the "Administration" "block" | When I click on "Edit settings" "link" in the "Administration" "block" | ||
</ | </syntaxhighlight> | ||
|- | |- | ||
|After | |After | ||
Line 77: | Line 77: | ||
And I am on "Course 1" course homepage | And I am on "Course 1" course homepage | ||
When I navigate to "Edit settings" in current page administration | When I navigate to "Edit settings" in current page administration | ||
</ | </syntaxhighlight> | ||
|} | |} | ||
<b>Why did this change?</b> | <b>Why did this change?</b> | ||
Line 106: | Line 106: | ||
And I follow "Course 1" | And I follow "Course 1" | ||
And I navigate to "Participants" node in "Current course > C1" | And I navigate to "Participants" node in "Current course > C1" | ||
</ | </syntaxhighlight> | ||
|- | |- | ||
|After | |After | ||
Line 114: | Line 114: | ||
And I follow "Course 1" | And I follow "Course 1" | ||
And I navigate to course participants | And I navigate to course participants | ||
</ | </syntaxhighlight> | ||
|} | |} | ||
<b> Why did this change? </b> | <b> Why did this change? </b> |
Revision as of 13:03, 14 July 2021
As new features are developed for Moodle, some UI changes can cause changes which unfortunately affect behat feature files. This page is intended to document important compatibility changes for behat test developers.
Compatibility changes
Moodle 3.3
And I follow "Course 1"
Summary
Previous step/s: | And I follow "Course 1" |
New step/s | And I am on "Course 1" course homepage And I am on "Course 1" course homepage with editing mode on |
Backported to: | Moodle 3.1.6, 3.2.3 and up. |
Before |
|
After |
|
Why did this change?
UI changes in the new dashboard mean the existing 'loose' step matches multiple values. The replacement step should help speed up your tests.
Moodle 3.2
And I click on "Edit settings" "link" in the "Administration" "block"
Summary
Previous step/s: | And I click on "Edit settings" "link" in the "Administration" "block" |
New step/s | And I navigate to "Edit settings" in current page administration |
Backported to: | Moodle 3.2.1, 3.1.4 and up. |
Before |
|
After |
|
Why did this change?
The boost theme changes how navigation works and the new steps are compatible with boost and bootstrap based themes.
Summary
Previous step/s: | And I navigate to "Participants" node in "My courses > C1" And I navigate to "Site blogs" node in "Site pages" |
New step/s | And I navigate to course participants |
Backported to: | Moodle 3.2.1, 3.1.4 and up. |
Before |
|
After |
|
Why did this change?
The boost theme changes how navigation works and the new steps are compatible with boost and bootstrap based themes.
Moodle 3.1
Behat migration from 2.5 to 3.x
Behat 3 brings a lot of extensibility and modularity but there are compatibility changes for running tests and writing step definitions. See Acceptance testing/Migrating from Behat 2.5 to 3.x in Moodle for fully details when coming from earlier versions of Moodle.