Merge pull request #80 from sgmap/fix-tests

Fix a failing test, incompatible with the new DatabaseCleaner strategy
This commit is contained in:
gregoirenovel 2017-04-10 17:52:04 +02:00 committed by GitHub
commit 216e7d9775

View file

@ -67,7 +67,7 @@ feature 'As an administrateur I wanna create a new procedure', js: true do
page.find_by_id('onglet-preview').trigger('click')
expect(page).to have_current_path(admin_procedure_previsualisation_path(Procedure.first.id.to_s))
expect(page.find_by_id('champs_1')['placeholder']).to eq('libelle de champ')
expect(page.find("input[type='text']")['placeholder']).to eq('libelle de champ')
expect(page.first('.piece-libelle').text).to eq('libelle de piece')
end