remove specific tabs css and use DSFR tabs
This commit is contained in:
parent
a0998ab709
commit
11c8e408ef
18 changed files with 35 additions and 91 deletions
|
@ -72,7 +72,7 @@ describe 'Inviting an expert:' do
|
|||
|
||||
click_on '1 avis à donner'
|
||||
click_on avis.dossier.user.email
|
||||
within('.tabs') { click_on 'Avis' }
|
||||
within('.fr-tabs') { click_on 'Avis' }
|
||||
expect(page).to have_text("Demandeur : #{avis.claimant.email}")
|
||||
expect(page).to have_text('Cet avis est confidentiel')
|
||||
|
||||
|
@ -102,7 +102,7 @@ describe 'Inviting an expert:' do
|
|||
|
||||
click_on '1 avis à donner'
|
||||
click_on avis.dossier.user.email
|
||||
within('.tabs') { click_on 'Avis' }
|
||||
within('.fr-tabs') { click_on 'Avis' }
|
||||
expect(page).to have_text("Demandeur : #{avis.claimant.email}")
|
||||
expect(page).to have_text('Question ?')
|
||||
expect(page).to have_text('Cet avis est confidentiel')
|
||||
|
@ -200,7 +200,7 @@ describe 'Inviting an expert:' do
|
|||
|
||||
click_on '1 avis à donner'
|
||||
click_on avis_1.dossier.user.email
|
||||
within('.tabs') { click_on 'Avis' }
|
||||
within('.fr-tabs') { click_on 'Avis' }
|
||||
expect(page).to have_text("Demandeur : #{avis_1.claimant.email}")
|
||||
click_on 'Voir les avis'
|
||||
expect(page).to have_text("Vous")
|
||||
|
@ -216,7 +216,7 @@ describe 'Inviting an expert:' do
|
|||
|
||||
click_on '1 avis à donner'
|
||||
click_on avis_2.dossier.user.email
|
||||
within('.tabs') { click_on 'Avis' }
|
||||
within('.fr-tabs') { click_on 'Avis' }
|
||||
expect(page).to have_text("Demandeur : #{avis_2.claimant.email}")
|
||||
click_on 'Voir les avis'
|
||||
expect(page).to have_text("Vous")
|
||||
|
|
|
@ -204,14 +204,14 @@ describe 'The routing with rules', js: true do
|
|||
## on the dossiers list
|
||||
click_on procedure.libelle
|
||||
expect(page).to have_current_path(instructeur_procedure_path(procedure))
|
||||
expect(find('.tabs')).to have_css('span.notifications')
|
||||
expect(find('.fr-tabs')).to have_css('span.notifications')
|
||||
|
||||
## on the dossier itself
|
||||
click_on 'suivi'
|
||||
click_on litteraire_user.email
|
||||
expect(page).to have_current_path(instructeur_dossier_path(procedure, litteraire_user.dossiers.first))
|
||||
expect(page).to have_text('Annotations privées')
|
||||
expect(find('.tabs')).to have_css('span.notifications')
|
||||
expect(find('.fr-tabs')).to have_css('span.notifications')
|
||||
log_out
|
||||
|
||||
# the scientifiques instructeurs should not have a notification
|
||||
|
|
|
@ -231,7 +231,7 @@ describe 'user access to the list of their dossiers', js: true do
|
|||
it "appears in the result list" do
|
||||
expect(current_path).to eq(dossiers_path)
|
||||
expect(page).to have_content("Résultat de la recherche pour « #{dossier_en_construction.id} »")
|
||||
expect(page).not_to have_css('.tabs')
|
||||
expect(page).not_to have_css('.fr-tabs')
|
||||
expect(page).to have_content(dossier_en_construction.id)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -76,7 +76,7 @@ describe 'users/dossiers/index', type: :view do
|
|||
end
|
||||
|
||||
it 'n’affiche la barre d’onglets' do
|
||||
expect(rendered).to have_selector('nav.tabs')
|
||||
expect(rendered).to have_selector('nav.fr-tabs')
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -88,9 +88,9 @@ describe 'users/dossiers/index', type: :view do
|
|||
end
|
||||
|
||||
it 'affiche la barre d’onglets' do
|
||||
expect(rendered).to have_selector('nav.tabs')
|
||||
expect(rendered).to have_selector('nav.tabs li', count: 5)
|
||||
expect(rendered).to have_selector('nav.tabs li.active', count: 1)
|
||||
expect(rendered).to have_selector('nav.fr-tabs')
|
||||
expect(rendered).to have_selector('nav.fr-tabs li', count: 5)
|
||||
expect(rendered).to have_selector('nav.fr-tabs li.active', count: 1)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ describe 'users/dossiers/show/header', type: :view do
|
|||
expect(rendered).to have_text("Dossier nº #{dossier.id}")
|
||||
expect(rendered).to have_text("en construction")
|
||||
|
||||
expect(rendered).to have_selector("nav.tabs")
|
||||
expect(rendered).to have_selector("nav.fr-tabs")
|
||||
expect(rendered).to have_link("Résumé", href: dossier_path(dossier))
|
||||
expect(rendered).to have_link("Demande", href: demande_dossier_path(dossier))
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue