fix failing spec

This commit is contained in:
Paul Chavard 2024-09-11 11:32:49 +02:00
parent 1577fdd6af
commit a57d8f2df8
No known key found for this signature in database
2 changed files with 4 additions and 2 deletions

View file

@ -144,7 +144,8 @@ describe 'As an administrateur, I want to manage the procedures attestation',
}
fill_in "Contenu du pied de page", with: ["line1", "line2", "line3", "line4"].join("\n")
expect(page).to have_field("Contenu du pied de page", with: "line1\nline2\nline3line4")
# FIXME we should get line1\nline2\nline3line4 instead of line1\nline2\nline3\nline4 because row is set to 3
expect(page).to have_field("Contenu du pied de page", with: "line1\nline2\nline3\nline4")
click_on "Publier"
expect(attestation.reload).to be_published

View file

@ -52,7 +52,8 @@ describe 'Instructing a dossier:', js: true do
click_on 'Instruire le dossier'
within('.instruction-button') do
click_on 'Accepter'
# FIXME click_on 'Accepter' is not working for some reason
find_link('Accepter').click
end
within('.accept.motivation') do