From 9b2f0f10f7e220e804e0c6d60a6d727934260b23 Mon Sep 17 00:00:00 2001 From: Jean-Michel Vedrine Date: Wed, 3 Jan 2018 08:20:16 +0100 Subject: Wrong button id in Behat test --- tests/behat/edit.feature | 2 +- tests/behat/preview.feature | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/behat/edit.feature b/tests/behat/edit.feature index 642440d..df400ad 100644 --- a/tests/behat/edit.feature +++ b/tests/behat/edit.feature @@ -36,7 +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 press "id_addanswers" 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 1ce36c4..24f53ab 100644 --- a/tests/behat/preview.feature +++ b/tests/behat/preview.feature @@ -36,6 +36,7 @@ Feature: Preview a Short answer question 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." + Then I should see "Mark 1.00 out of 1.00" And I should see "Generalfeedback: (P + Q)(x) = 7x." And I should see "The correct answer is: 7*x" @@ -50,6 +51,6 @@ Feature: Preview a Short answer question And I press "Start again with these options" 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." + Then I should see "Mark 0.00 out of 1.00" And I should see "Generalfeedback: (P + Q)(x) = 7x." And I should see "The correct answer is: 7*x" \ No newline at end of file -- cgit v1.2.3