Bug
PWA: Log out, uninstall and clean up
Issue description
Once the PWA is set up, it behaves like a face hugger. This makes it difficult to write tests, since the autologin causes the login form to fail. But it needs to be at the beginning of each tests, because the should run independently from each other. Thus, it should be possible to remove the service worker completely, then logout and be in state where nothing has happend.
Developer comments
Logging out should not clear the service worker cache, because this is not what it means for the user: "I logged out and now all my data is gone from my phone. WTF?". In particular it should not clear storage, as this is the worker the user achieved.
This also affects ordinary users (U1) who check another users (P1) view where PWA is enabled. In this case if they logout as U1 and login as P1, then the service worker becomes active. When they logout from P1, the next click on login logs them automatically in as P1, but they want to be U1.
|
Work sessions2
Start |
2021-11-17T02:54:27
|
End |
2021-11-17T04:19:54
|
Participant |
Robert Cerny
|
Start |
2021-11-17T04:43:51
|
End |
2021-11-17T06:53:19
|
Participant |
Robert Cerny
|
|
We are sorry
This page cannot be displayed in your browser. Use Firefox, Opera, Safari, or Chrome instead.