Skip to content

Commit f3732b7

Browse files
Amaia Anabitartesarjona
authored andcommitted
MDL-60636 behat: Fixing modified xpath
1 parent 5d85b4a commit f3732b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

search/tests/behat/search_by_user.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Feature: Select users when searching for user-created content
3434
| activity | PAGE1 |
3535
And I search for "frogs" using the header global search box
3636
And I expand all fieldsets
37-
And I set the field with xpath "//select[@id='id_userids']/../input[@type='text']" to "Anne"
37+
And I set the field with xpath "//select[@id='id_userids']/..//input[@type='text']" to "Anne"
3838
# Alphabetical surname order.
3939
Then "Anne Additional" "text" should appear before "Anne Ditin" "text"
4040
And "Anne Ditin" "text" should appear before "Anne Other" "text"
@@ -49,7 +49,7 @@ Feature: Select users when searching for user-created content
4949
And I search for "frogs" using the header global search box
5050
And I expand all fieldsets
5151
And I select "Course: Frogs" from the "Search within" singleselect
52-
And I set the field with xpath "//select[@id='id_userids']/../input[@type='text']" to "Anne"
52+
And I set the field with xpath "//select[@id='id_userids']/..//input[@type='text']" to "Anne"
5353
# Users in selected course appear first.
5454
And "Anne Additional" "text" should appear after "Anne Other" "text"
5555

@@ -62,6 +62,6 @@ Feature: Select users when searching for user-created content
6262
| activity | PAGE1 |
6363
And I search for "frogs" using the header global search box
6464
And I expand all fieldsets
65-
And I set the field with xpath "//select[@id='id_userids']/../input[@type='text']" to "A"
65+
And I set the field with xpath "//select[@id='id_userids']/..//input[@type='text']" to "A"
6666
Then "Anne Ditin" "text" should appear before "Anne Other" "text"
6767
And "Anne Additional" "text" should not exist

0 commit comments

Comments
 (0)