mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +02:00
MDL-78521 behat: reload page before asserting content
This commit also reword a Scenario name to make it unique
This commit is contained in:
parent
3cd84747cb
commit
b1a2f8dea1
1 changed files with 2 additions and 1 deletions
|
@ -59,13 +59,14 @@ Feature: The my overview block allows users to hide their courses
|
||||||
And I click on "Removed from view" "link" in the "Course overview" "block"
|
And I click on "Removed from view" "link" in the "Course overview" "block"
|
||||||
And I click on ".coursemenubtn" "css_element" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
And I click on ".coursemenubtn" "css_element" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||||
And I click on "Restore to view" "link" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
And I click on "Restore to view" "link" in the "//div[@class='card dashboard-card' and contains(.,'Course 2')]" "xpath_element"
|
||||||
|
And I reload the page
|
||||||
And I should not see "Course 2" in the "Course overview" "block"
|
And I should not see "Course 2" in the "Course overview" "block"
|
||||||
And I click on "Removed from view" "button" in the "Course overview" "block"
|
And I click on "Removed from view" "button" in the "Course overview" "block"
|
||||||
When I click on "All" "link" in the "Course overview" "block"
|
When I click on "All" "link" in the "Course overview" "block"
|
||||||
And I reload the page
|
And I reload the page
|
||||||
Then I should see "Course 2" in the "Course overview" "block"
|
Then I should see "Course 2" in the "Course overview" "block"
|
||||||
|
|
||||||
Scenario: Test show toggle functionality w/ favorites
|
Scenario: Test star and unstar functionality
|
||||||
Given I am on the "My courses" page logged in as "student1"
|
Given I am on the "My courses" page logged in as "student1"
|
||||||
And I click on "All" "button" in the "Course overview" "block"
|
And I click on "All" "button" in the "Course overview" "block"
|
||||||
And I click on "All" "link" in the "Course overview" "block"
|
And I click on "All" "link" in the "Course overview" "block"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue