Skip to content

Commit 0366a4d

Browse files
INT-18505: fix hsuforum ordering behat tests
1 parent c5f7480 commit 0366a4d

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

tests/behat/posts_ordering_blog.feature

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ Feature: In Open Forums, blog posts are always displayed in reverse chronologica
5151
#
5252
And I follow "Blog post 2"
5353
And I click on "Edit" "link" in the "//article[contains(concat(' ', normalize-space(@class), ' '), ' hsuforum-thread ')][contains(., 'Blog post 2')]" "xpath_element"
54-
And I set the field with xpath "//*[@id='region-main']/div/div[1]/article/div[1]/form/fieldset/div[3]/div[1]/input" to "Edited blog post 2"
54+
And I set the following fields to these values:
55+
| Subject | Edited blog post 2 |
5556
And I press "Submit"
5657
And I wait to be redirected
5758
And I log out

tests/behat/posts_ordering_general.feature

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ Feature: New Open discussions and discussions with recently added replies are di
5151
#
5252
And I follow "Forum post 2"
5353
And I click on "Edit" "link" in the "//article[contains(concat(' ', normalize-space(@class), ' '), ' hsuforum-thread ')][contains(., 'Forum post 2')]" "xpath_element"
54-
And I set the field with xpath "//*[@id='region-main']/div/div[1]/article/div[1]/form/fieldset/div[3]/div[1]/input" to "Edited forum post 2"
54+
And I set the following fields to these values:
55+
| Subject | Edited forum post 2 |
5556
And I press "Submit"
5657
And I wait to be redirected
5758
And I log out
@@ -63,7 +64,8 @@ Feature: New Open discussions and discussions with recently added replies are di
6364
And I follow "Course general forum"
6465
And I follow "Forum post 1"
6566
And I follow "Use advanced editor and additional options"
66-
And I set the field with xpath "//*[@id='id_message']" to "Reply to the first post"
67+
And I set the following fields to these values:
68+
| Message | Reply to the first post |
6769
And I press "Post to forum"
6870
And I wait to be redirected
6971
And I am on "Course 1" course homepage

0 commit comments

Comments
 (0)