Merge pull request #8975 from demarches-simplifiees/fix_flaky_bretigny_spec

spec: fix flaky test
This commit is contained in:
LeSim 2023-04-26 15:43:28 +00:00 committed by GitHub
commit 95c723e5ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,6 +40,9 @@ describe 'The user' do
fill_in('Renseignez le code postal puis sélectionnez la commune dans la liste', with: '60400')
select('Brétigny (60400)', from: form_id_for('communes'))
# communes needs more time to be updated
wait_until { champ_value_for('communes') == "Brétigny" }
fill_in('dossier_link', with: '123')
find('.editable-champ-piece_justificative input[type=file]').attach_file(Rails.root + 'spec/fixtures/files/file.pdf')