Merge pull request #9705 from demarches-simplifiees/setup-dark-mode-ldu
[Accessibilité] Configurer le mode "sombre"
This commit is contained in:
commit
1fa3425d4f
91 changed files with 296 additions and 409 deletions
|
@ -25,7 +25,8 @@ describe 'As an administrateur, I want to manage the procedure’s attestation',
|
|||
scenario do
|
||||
visit admin_procedure_path(procedure)
|
||||
# start with no attestation
|
||||
find_attestation_card(with_nested_selector: ".icon.clock")
|
||||
expect(page).to have_content('Désactivée')
|
||||
find_attestation_card(with_nested_selector: ".fr-badge")
|
||||
|
||||
# now process to enable attestation
|
||||
find_attestation_card.click
|
||||
|
@ -38,7 +39,8 @@ describe 'As an administrateur, I want to manage the procedure’s attestation',
|
|||
|
||||
# check attestation
|
||||
visit admin_procedure_path(procedure)
|
||||
find_attestation_card(with_nested_selector: ".icon.accept")
|
||||
expect(page).to have_content('Activée')
|
||||
find_attestation_card(with_nested_selector: ".fr-badge--success")
|
||||
|
||||
# publish procedure
|
||||
# click CTA for publication screen
|
||||
|
@ -55,7 +57,8 @@ describe 'As an administrateur, I want to manage the procedure’s attestation',
|
|||
|
||||
# check attestation is now disabled
|
||||
visit admin_procedure_path(procedure)
|
||||
find_attestation_card(with_nested_selector: ".icon.clock")
|
||||
expect(page).to have_content('Désactivée')
|
||||
find_attestation_card(with_nested_selector: ".fr-badge")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -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