diff options
author | Jean-Michel Vedrine <vedrine@vedrine.org> | 2018-01-03 00:08:09 +0100 |
---|---|---|
committer | Jean-Michel Vedrine <vedrine@vedrine.org> | 2018-01-03 00:08:09 +0100 |
commit | 0651447406bca3ce35d05bbd7fe8cfd1151c2232 (patch) | |
tree | 798a0d5b9f019fb1815d5ff86c025876cf94071f /tests/behat | |
parent | 258faccefdf5adc8c6f39f80787142addd649aa8 (diff) |
Try to fix Behat tests
Diffstat (limited to 'tests/behat')
-rw-r--r-- | tests/behat/edit.feature | 1 | ||||
-rw-r--r-- | tests/behat/preview.feature | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/behat/edit.feature b/tests/behat/edit.feature index 87a2a54..642440d 100644 --- a/tests/behat/edit.feature +++ b/tests/behat/edit.feature @@ -36,6 +36,7 @@ Feature: Test editing an Algebra question And I press "id_submitbutton" Then I should see "Edited algebra-001 name" When I click on "Edit" "link" in the "Edited algebra-001 name" "table_row" + And I press "id_addvariables" And I set the following fields to these values: | id_answer_1 | 6*x | | id_fraction_1 | 10% | diff --git a/tests/behat/preview.feature b/tests/behat/preview.feature index 6b06db8..1ce36c4 100644 --- a/tests/behat/preview.feature +++ b/tests/behat/preview.feature @@ -33,7 +33,7 @@ Feature: Preview a Short answer question And I set the following fields to these values: | behaviour | immediatefeedback | And I press "Start again with these options" - And I set the field with xpath "//div[@class='qtext']//input[contains(@id, '1_answer')]" to "7*x" + And I set the field with xpath "//div[@class='answer']//input[contains(@id, '1_answer')]" to "7*x" And I press "Check" Then I should see "This is a very good answer." And I should see "Generalfeedback: (P + Q)(x) = 7x." @@ -48,7 +48,7 @@ Feature: Preview a Short answer question And I set the following fields to these values: | behaviour | immediatefeedback | And I press "Start again with these options" - And I set the field with xpath "//div[@class='qtext']//input[contains(@id, '1_answer')]" to "6*x" + And I set the field with xpath "//div[@class='answer']//input[contains(@id, '1_answer')]" to "6*x" And I press "Check" Then I should see "That is a bad answer." And I should see "Generalfeedback: (P + Q)(x) = 7x." |