MDL-84341 qbank_history: Behat cleanup

This commit is contained in:
Huong Nguyen
2025-02-18 20:41:00 +07:00
parent fe0c832dcd
commit c0f24543fc
@@ -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"