From 76c855e9363be142fa6ef207174628602afa099a Mon Sep 17 00:00:00 2001 From: stephanie rousset Date: Wed, 6 Nov 2024 10:56:30 +0100 Subject: [PATCH] test: last update check img --- .../admin/admin_manages_survey_question_with_image_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/system/admin/admin_manages_survey_question_with_image_spec.rb b/spec/system/admin/admin_manages_survey_question_with_image_spec.rb index 6897a803a1..90af943e33 100644 --- a/spec/system/admin/admin_manages_survey_question_with_image_spec.rb +++ b/spec/system/admin/admin_manages_survey_question_with_image_spec.rb @@ -36,7 +36,7 @@ visit questionnaire_edit_path click_button "Save" click_button "Expand all" - expect(page).to have_xpath('//img[@src="http://mon_image.png"]') + expect(page).to have_css("img[src$='mon_image.png']") within "#questionnaire_question_#{question.id}-field" do within "#questionnaire_question_#{question.id}-description-panel-0" do input = page.find("#questionnaire_questions_#{question.id}_description_en")