diff --git a/question/bank/history/tests/behat/question_version_column.feature b/question/bank/history/tests/behat/question_version_column.feature index 7c8f828463d..4c2958d0572 100644 --- a/question/bank/history/tests/behat/question_version_column.feature +++ b/question/bank/history/tests/behat/question_version_column.feature @@ -38,15 +38,15 @@ Feature: Use the qbank plugin manager page for version column Scenario: Sort the question versions Given I am on the "Test quiz" "mod_quiz > question bank" page logged in as "admin" And I apply question bank filter "Category" with value "Test questions" - And I choose "History" action for "The Final Edit" in the question bank + When I choose "History" action for "The Final Edit" in the question bank Then "Edit the Second" "checkbox" should appear before "The Final Edit" "checkbox" - Then "First Edit" "checkbox" should appear before "Edit the Second" "checkbox" - Then "First Question" "checkbox" should appear before "First Edit" "checkbox" + And "First Edit" "checkbox" should appear before "Edit the Second" "checkbox" + And "First Question" "checkbox" should appear before "First Edit" "checkbox" And I follow "Sort by Version ascending" - Then "Edit the Second" "checkbox" should appear before "The Final Edit" "checkbox" - Then "First Edit" "checkbox" should appear before "Edit the Second" "checkbox" - Then "First Question" "checkbox" should appear before "First Edit" "checkbox" + And "Edit the Second" "checkbox" should appear before "The Final Edit" "checkbox" + And "First Edit" "checkbox" should appear before "Edit the Second" "checkbox" + And "First Question" "checkbox" should appear before "First Edit" "checkbox" And I follow "Sort by Version descending" - Then "The Final Edit" "checkbox" should appear before "Edit the Second" "checkbox" - Then "Edit the Second" "checkbox" should appear before "First Edit" "checkbox" - Then "First Edit" "checkbox" should appear before "First Question" "checkbox" + And "The Final Edit" "checkbox" should appear before "Edit the Second" "checkbox" + And "Edit the Second" "checkbox" should appear before "First Edit" "checkbox" + And "First Edit" "checkbox" should appear before "First Question" "checkbox"