Skip to content

Commit

Permalink
Update to handle changes in how behat processes multiple scenarios.
Browse files Browse the repository at this point in the history
  • Loading branch information
trampgeek committed Jul 19, 2020
1 parent fbd3d5f commit 0654c51
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/behat/showdifferences_button.feature
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Feature: Show differences in CodeRunner questions
| print(sqr(11)) |
And "print(sqr(-7))" row "Expected" column of "coderunner-test-results" table should contain "49"
And "print(sqr(-7))" row "Got" column of "coderunner-test-results" table should contain "12345"
And I should see "Partially correct"
And I should not see highlighted "9"
And I should not see highlighted "123"
And I should not see highlighted "5"
Expand All @@ -51,6 +52,8 @@ Feature: Show differences in CodeRunner questions
When I choose "Preview" action for "Square function" in the question bank
And I switch to "questionpreview" window
And I set the field "id_behaviour" to "Adaptive mode"
And I press "Start again with these options"
And I set the field with xpath "//textarea[contains(@name, 'answer')]" to "def sqr(n): return n * n if n != -3 else 12345"
Then I should not see "Show differences"
And I set the field with xpath "//textarea[contains(@name, 'answer')]" to "def sqr(n): return n * n if n != -6 else 12345"
And I press "Check"
Then I should see "Partially correct"
And I should see "Your code failed one or more hidden tests"
And I should not see "Show differences"

0 comments on commit 0654c51

Please sign in to comment.