style(autosave): retry button as dsfr

This commit is contained in:
Colin Darie 2023-04-21 18:38:00 +02:00
parent ac43d78b08
commit 11dd1b7d76
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4
2 changed files with 4 additions and 4 deletions

View file

@ -31,7 +31,7 @@
= t('.en_construction.error')
- else
= t('.brouillon.error')
%button.button.small.autosave-retry{ type: :button, data: { action: 'autosave-status#onClickRetryButton', autosave_status_target: 'retryButton' } }
%span.autosave-retry-label réessayer
%span.autosave-retrying-label enregistrement en cours…
%button.fr-btn.fr-btn--tertiary.fr-btn--sm.autosave-retry{ type: :button, data: { action: 'autosave-status#onClickRetryButton', autosave_status_target: 'retryButton' } }
%span.autosave-retry-label Réessayer
%span.autosave-retrying-label Enregistrement en cours…

View file

@ -490,7 +490,7 @@ describe 'The user' do
# Test that retrying after a failure works
allow_any_instance_of(Users::DossiersController).to receive(:update).and_call_original
click_on 'réessayer'
click_on 'Réessayer'
wait_for_autosave
visit current_path