Merge branch 'MDL-63892-master-rework' of git://github.com/mickhawkins/moodle

This commit is contained in:
Jun Pataleta 2019-02-13 21:01:32 +08:00
commit 28785ee630

View File

@ -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