mirror of
https://github.com/suitenumerique/docs.git
synced 2026-09-11 20:27:56 +02:00
✅(e2e) fix flaky test
A test got suddenly very flaky, we fixed it by reloading the page to ensure that the config was properly overridden.
This commit is contained in:
@@ -157,6 +157,8 @@ test.describe('Doc Routing', () => {
|
||||
RELEASE_VERSION: '0.0.0',
|
||||
});
|
||||
|
||||
await page.goto('/');
|
||||
|
||||
let counterReload = 0;
|
||||
await page.route(/.*\/users\/me\/$/, async (route) => {
|
||||
counterReload += 1;
|
||||
|
||||
Reference in New Issue
Block a user