MDL-66821 question behat: new step for acting on questions in the bank
authorTim Hunt <T.J.Hunt@open.ac.uk>
Wed, 2 Oct 2019 14:58:04 +0000 (15:58 +0100)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Mon, 14 Oct 2019 10:36:12 +0000 (11:36 +0100)
commit9c14b28d0bdb3afa24d22f765e8fef60ba26e6ff
treeb3344b1ca69fa85747dda6b5292a7dbb65c98125
parent5aacd5e70ed2e71b9760d2eb6bdcce1fc08ff1fa
MDL-66821 question behat: new step for acting on questions in the bank

There is a proposed change MDL-66816 which will change the question
bank UI. This will break any Behat tests which uses low-level steps
like

    When I click on "Duplicate" "link" in the "Test question" "table_row"

to perform an action on a question in the question bank. This commit
introduces a new step:

    When I choose "Duplicate" action for "Test question" in the question bank

This commit also converts all core Behat tests to use the new step.
42 files changed:
mod/quiz/tests/behat/editing_add_from_question_bank.feature
mod/quiz/tests/behat/editing_add_random.feature
question/tests/behat/behat_question.php
question/tests/behat/copy_questions.feature
question/tests/behat/delete_questions.feature
question/tests/behat/edit_questions.feature
question/tests/behat/filter_questions_by_tag.feature
question/tests/behat/preview_question.feature
question/tests/behat/question_categories.feature
question/tests/behat/question_categories_idnumber.feature
question/type/ddimageortext/tests/behat/backup_and_restore.feature
question/type/ddimageortext/tests/behat/edit.feature
question/type/ddimageortext/tests/behat/preview.feature
question/type/ddmarker/tests/behat/backup_and_restore.feature
question/type/ddmarker/tests/behat/edit.feature
question/type/ddmarker/tests/behat/preview.feature
question/type/ddwtos/tests/behat/backup_and_restore.feature
question/type/ddwtos/tests/behat/edit.feature
question/type/ddwtos/tests/behat/preview.feature
question/type/description/tests/behat/backup_and_restore.feature
question/type/description/tests/behat/edit.feature
question/type/description/tests/behat/preview.feature
question/type/essay/tests/behat/backup_and_restore.feature
question/type/essay/tests/behat/edit.feature
question/type/essay/tests/behat/preview.feature
question/type/gapselect/tests/behat/basic_test.feature
question/type/match/tests/behat/backup_and_restore.feature
question/type/match/tests/behat/edit.feature
question/type/match/tests/behat/preview.feature
question/type/multichoice/tests/behat/backup_and_restore.feature
question/type/multichoice/tests/behat/edit.feature
question/type/multichoice/tests/behat/preview.feature
question/type/numerical/tests/behat/backup_and_restore.feature
question/type/numerical/tests/behat/edit.feature
question/type/numerical/tests/behat/preview.feature
question/type/shortanswer/tests/behat/backup_and_restore.feature
question/type/shortanswer/tests/behat/edit.feature
question/type/shortanswer/tests/behat/preview.feature
question/type/truefalse/tests/behat/backup_and_restore.feature
question/type/truefalse/tests/behat/edit.feature
question/type/truefalse/tests/behat/preview.feature
question/type/upgrade.txt