Skip to content

Commit

Permalink
Update behat for Moodle 4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusgreen committed Oct 3, 2023
1 parent 7ec4158 commit e0d104c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
5 changes: 3 additions & 2 deletions tests/behat/add_quiz.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@mod @mod_quiz @qtype @qtype_gapfill @javascript @gapfill_quiz
@mod @mod_quiz @qtype @qtype_gapfill @javascript @qtype_gapfill_add_quiz

Feature: Add a Gapfill quiz
In order to evaluate students as a teacher
Expand Down Expand Up @@ -67,7 +67,8 @@ Feature: Add a Gapfill quiz
And I click on "Attempts" "link"
And I click on "mod-quiz-report-overview-report-selectall-attempts" "checkbox"
And I click on "Delete selected attempts" "button"
And I click on "Yes" "button" in the "Confirmation" "dialogue"
# And I click on "Yes" "button" in the "Confirmation" "dialogue"
And I click on "Yes" "button"
And I am on the "Gapfill single page quiz" "mod_quiz > Edit" page logged in as "teacher1"
And I press "Repaginate"
Then I click on "Go" "button" in the "Repaginate" "dialogue"
Expand Down
14 changes: 9 additions & 5 deletions tests/behat/basic_test.feature
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ Feature: Test all the basic functionality of this Gapfill question type
| Specific feedback | Shown |
| Right answer | Shown |

And I press "Start again with these options"
# And I press "Start again with these options"
And I press "Update display options"
And I press "Start again"
# And I drag "sat" into gap "1" in the gapfill question
And I type "sat" into gap "1" in the gapfill question

Expand Down Expand Up @@ -90,7 +92,8 @@ Feature: Test all the basic functionality of this Gapfill question type
| Specific feedback | Shown |
| Right answer | Shown |

And I press "Start again with these options"
And I press "Save preview options"
And I press "Start again"

And I type "sat" into gap "1" in the gapfill question
And I type "xxx" into gap "2" in the gapfill question
Expand Down Expand Up @@ -139,8 +142,8 @@ Feature: Test all the basic functionality of this Gapfill question type
| Marks | Show mark and max |
| Specific feedback | Shown |
| Right answer | Shown |
And I press "Start again with these options"

And I press "Save preview options"
And I press "Start again"
#Enter both correct responses
# And I drag "sat" into gap "1" in the gapfill question
And I type "sat" into gap "1" in the gapfill question
Expand Down Expand Up @@ -196,7 +199,8 @@ Feature: Test all the basic functionality of this Gapfill question type
| Specific feedback | Shown |
| Right answer | Shown |

And I press "Start again with these options"
And I press "Update display options"
And I press "Start again"
# And I drag "sat" into gap "1" in the gapfill question
And I type "sat" into gap "1" in the gapfill question

Expand Down
1 change: 1 addition & 0 deletions tests/behat/multilang.feature
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,6 @@ Feature: Test the queiton type works with multilanguage filters
Then I should see "Gapfill-002"
#Check that the french words are not displayed
And I am on the "Gapfill-002" "core_question > preview" page

And I should see "cat"
And I should not see "chat"

0 comments on commit e0d104c

Please sign in to comment.