fix(spec): 1. visit new_user_session_path instead of navigating to it. 2. change way to submit search according to dsfr html. 3. avoid nav without aria label. 4. various lint fixes

This commit is contained in:
Martin 2022-08-31 12:44:00 +02:00 committed by mfo
parent a48a8b6081
commit df3ef23f7e
9 changed files with 30 additions and 19 deletions

View file

@ -84,11 +84,11 @@ describe 'The routing', js: true do
# the search only show litteraires dossiers
fill_in 'q', with: scientifique_user.email
click_on 'Rechercher'
find('.fr-search-bar .fr-btn').click
expect(page).to have_text('0 dossier trouvé')
fill_in 'q', with: litteraire_user.email
click_on 'Rechercher'
find('.fr-search-bar .fr-btn').click
expect(page).to have_text('1 dossier trouvé')
## and the result is clickable