mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-56189 behat: Fixed xpath to use contains class
This commit is contained in:
parent
9c56f904d2
commit
259d3742f9
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ Feature: Confirm that conditions on completion no longer cause a bug
|
||||||
And I set the field "Activity or resource" to "Page1"
|
And I set the field "Activity or resource" to "Page1"
|
||||||
And I press "Add restriction..."
|
And I press "Add restriction..."
|
||||||
And I click on "Activity completion" "button" in the "Add restriction..." "dialogue"
|
And I click on "Activity completion" "button" in the "Add restriction..." "dialogue"
|
||||||
And I set the field with xpath "//div[@class='availability-item'][preceding-sibling::div]//select[@name='cm']" to "Page2"
|
And I set the field with xpath "//div[contains(concat(' ', normalize-space(@class), ' '), ' availability-item ')][preceding-sibling::div]//select[@name='cm']" to "Page2"
|
||||||
And I press "Save and return to course"
|
And I press "Save and return to course"
|
||||||
And I should see "Not available unless:" in the ".activity.glossary" "css_element"
|
And I should see "Not available unless:" in the ".activity.glossary" "css_element"
|
||||||
And I should see "The activity Page1 is marked complete" in the ".activity.glossary" "css_element"
|
And I should see "The activity Page1 is marked complete" in the ".activity.glossary" "css_element"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue