demarches-normaliennes/spec/features
Pierre de La Morinerie e1909ed29f brouillon: redirect to sign-in when disconnected
There are two cases where the draft auto-save might fail because the
user is no longer authenticated:

- The user signed-out in another tab,
- The brower quit and re-opened, so the Session cookie expired.

In both cases, the auto-save will never succeed until the user
authenticates again, so displaying a "Retry" button is cruel.

Moreover, in plus of all auto-save requests failing with a small error,
the actual hard failure only occurs after filling all the form and
trying to submit it. Then the user is redirected to the sign-in page –
but all their changes are lost.

Instead, we now redirect to the sign-in page on the first 401 error
during the auto-save, let the user sign-in, and then redirect back to
the form.
2021-07-22 11:58:02 +02:00
..
accessibilite geo module is not really accessible :( 2021-04-28 15:34:53 +02:00
admin admin: durée de conservation des données hors ds n'est plus demandée 2021-02-17 16:41:57 +01:00
experts experts: fix saving password on sign-in 2021-06-30 10:46:42 +02:00
france_connect do not know how it worked before 2021-05-05 14:36:34 +02:00
instructeurs Add last_month export 2021-06-23 09:23:10 +02:00
new_administrateur Add a point on map from coordinates input 2021-07-07 13:33:28 +02:00
routing accepte nouvelles valeurs pour ComboMultipleDropdownList 2021-02-16 16:47:15 +01:00
sessions Fix apostrophes ‘ -> ’ 2021-05-26 18:05:14 +02:00
users brouillon: redirect to sign-in when disconnected 2021-07-22 11:58:02 +02:00
forgery_spec.rb app: use a long-lived cookie for CSRF token 2021-07-20 11:11:52 +02:00
help_spec.rb specs: always require rails_helper 2020-03-31 12:48:32 +02:00
i18n_spec.rb i18n: add feature spec for changing the language 2021-05-27 11:01:26 +02:00
outdated_browser_spec.rb ajout d'une bannière de dépréciation pour IE11 2020-07-06 10:01:02 +02:00