Skip to content

Commit

Permalink
test: update img check again
Browse files Browse the repository at this point in the history
  • Loading branch information
Stef-Rousset committed Nov 6, 2024
1 parent 9c3d334 commit eed0d64
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@
visit questionnaire_edit_path
click_button "Save"
click_button "Expand all"
expect(page).to have_xpath('//img[@src="http://mon_image.png"]')
within "#questionnaire_question_#{question.id}-field" do
within "#questionnaire_question_#{question.id}-description-panel-0" do
description = find(".ql-editor p")
expect(description).to have_css("img[src='http://mon_image.png']")
input = page.find("#questionnaire_questions_#{question.id}_description_en")
expect(input.value).to eq('<p><img src="http://mon_image.png"></p>')
end
Expand Down

0 comments on commit eed0d64

Please sign in to comment.