mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 04:52:36 +02:00
Merge branch 'MDL-63892-master-rework' of git://github.com/mickhawkins/moodle
This commit is contained in:
commit
28785ee630
@ -71,14 +71,14 @@ Feature: New discussions and discussions with recently added replies are display
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Course general forum"
|
||||
#
|
||||
# Make sure the order of the forum posts is as expected (most recently participated first).
|
||||
# Make sure the order of the forum posts is as expected, with most recent new participation first (ie excluding edits).
|
||||
#
|
||||
Then I should see "Forum post 3" in the "//tr[contains(concat(' ', normalize-space(@class), ' '), ' discussion ')][position()=3]" "xpath_element"
|
||||
And I should see "Edited forum post 2" in the "//tr[contains(concat(' ', normalize-space(@class), ' '), ' discussion ')][position()=2]" "xpath_element"
|
||||
And I should see "Forum post 1" in the "//tr[contains(concat(' ', normalize-space(@class), ' '), ' discussion ')][position()=1]" "xpath_element"
|
||||
Then I should see "Forum post 1" in the "//tr[contains(concat(' ', normalize-space(@class), ' '), ' discussion ')][position()=1]" "xpath_element"
|
||||
And I should see "Forum post 3" in the "//tr[contains(concat(' ', normalize-space(@class), ' '), ' discussion ')][position()=2]" "xpath_element"
|
||||
And I should see "Edited forum post 2" in the "//tr[contains(concat(' ', normalize-space(@class), ' '), ' discussion ')][position()=3]" "xpath_element"
|
||||
#
|
||||
# Make sure the next/prev navigation uses the same order of the posts.
|
||||
#
|
||||
And I follow "Edited forum post 2"
|
||||
And I follow "Forum post 3"
|
||||
And "//a[@aria-label='Next discussion: Forum post 1']" "xpath_element" should exist
|
||||
And "//a[@aria-label='Previous discussion: Forum post 3']" "xpath_element" should exist
|
||||
And "//a[@aria-label='Previous discussion: Edited forum post 2']" "xpath_element" should exist
|
||||
|
Loading…
x
Reference in New Issue
Block a user