mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 14:02:32 +02:00
MDL-5311 qtype_multichoice: add behat scenario to question preview
This commit is contained in:
parent
3c1717bb09
commit
1ff3987600
@ -70,3 +70,15 @@ Feature: Preview a Multiple choice question
|
||||
And I should see "Well done!"
|
||||
And I should see "The correct answer is: One"
|
||||
And I switch to the main window
|
||||
|
||||
@javascript @_switch_window
|
||||
Scenario: Preview a multiple choice question (single response) and clear a previous selected option.
|
||||
When I click on "Preview" "link" in the "Multi-choice-002" "table_row"
|
||||
And I switch to "questionpreview" window
|
||||
And I set the field "How questions behave" to "Immediate feedback"
|
||||
And I press "Start again with these options"
|
||||
And I click on "One" "radio"
|
||||
Then I should see "Clear my choice"
|
||||
And I click on "Clear my choice" "text"
|
||||
And I should not see "Clear my choice"
|
||||
And I switch to the main window
|
||||
|
Loading…
x
Reference in New Issue
Block a user