Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-82946

Behat test to verify that a teacher can perform bulk actions with questions in a question bank

XMLWordPrintable

      QA test to be automated: MDLQA-16071

      Set up

      This test requires a question bank containing various types of question.
       The question bank should contain different question categories.

      Bulk delete questions

       # Go to a question bank and filter it to a category by using the "Select a category:" select element.
       # Verify that as long as you haven't checked any question when clicking the "With selected▴" button you can't choose any action.
       # Check some checkboxes to the left hand side of the questions.
       # Click the "With selected▴" button and choose the "Delete" action.
       # Verify you are asked "Are you absolutely sure you want to delete the following questions?" with a list of the questions you chose beforehand.
       # Accept with the button "Delete"
       # Verify the selected questions have been deleted.

      Bulk move questions to another category 

       # Go to a question bank and filter it to a category by using the "Select a category:" select element.
       # Verify that as long as you haven't checked any question when clicking the "With selected▴" button you can't choose any action.
       # Check some checkboxes to the left hand side of the questions.
       # Click the "With selected▴" button and choose the "Move to ..." action.
       # On the following page "Move the selected questions", do choose a question bank category you want to move the questions to.
       # Accept with the button "Move to ..."
       # Verify you are redirected to that question bank category and the selected questions have been moved.

      Please note: There's coverage for bulk delete in question/bank/deletequestion/tests/behat/delete_question_column.feature and some coverage for bulk move in question/bank/bulkmove/tests/behat/bulk_move.feature, just need to compare the Behat with the QA test and just add the missing steps.

            andelacruz Angelia Dela Cruz
            lameze Simey Lameze
            Mihail Geshoski Mihail Geshoski
            Simey Lameze Simey Lameze
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours, 44 minutes
                4h 44m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.