From caa9cb71249fa1a13a39144cc9f4ba6d0215ab44 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Mon, 22 Jan 2018 12:38:03 +0800 Subject: [PATCH] MDL-61252 mod_quiz: Fix ambiguous behat check --- mod/quiz/tests/behat/manually_mark_question.feature | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/quiz/tests/behat/manually_mark_question.feature b/mod/quiz/tests/behat/manually_mark_question.feature index f465f191427..5ae87fe5052 100644 --- a/mod/quiz/tests/behat/manually_mark_question.feature +++ b/mod/quiz/tests/behat/manually_mark_question.feature @@ -85,7 +85,7 @@ Feature: Teachers can override the grade for any question And I set the field "Comment" to "\"It's" And I press "Save" and switch to main window And I switch to the main window - And I should see "It's the logo" in the "3" "table_row" - And "//*[contains(@class, 'comment')]//img[contains(@src, 'moodle_logo.jpg')]" "xpath_element" should exist + And I should see "Commented: [It's the logo]" in the ".history table" "css_element" + And "img[contains(@src, 'moodle_logo.jpg')]" "xpath_element" should exist in the ".comment" "css_element" # This time is same as time the window is open. So wait for it to close before proceeding. And I wait "2" seconds