(e2e) fix flakiness

Some flakiness appeared in the e2e tests. It
started to impact many pull requests. Time to
fix them.
This commit is contained in:
Anthony LC
2025-01-29 14:06:38 +01:00
committed by Anthony LC
parent 7880391648
commit 6569f61fc4
11 changed files with 117 additions and 180 deletions

View File

@@ -171,6 +171,9 @@ test.describe('Doc Visibility: Restricted', () => {
await page.goto(urlDoc);
// eslint-disable-next-line playwright/no-wait-for-timeout
await page.waitForTimeout(1000);
await verifyDocName(page, docTitle);
await expect(page.getByLabel('Share button')).toBeVisible();
});
@@ -209,6 +212,7 @@ test.describe('Doc Visibility: Public', () => {
page.getByText('The document visibility has been updated.'),
).toBeVisible();
await expect(page.getByLabel('Visibility mode')).toBeVisible();
await page.getByLabel('Visibility mode').click();
await page
.getByRole('button', {