(e2e) remove some flakiness

Service worker added some flakiness, we
activate the sw only if not from the CI.
We add as well the email of the user added in a
doc to the toast message. This way we can check
if the user was added correctly, this will remove
some flakiness in some tests.
This commit is contained in:
Anthony LC
2024-06-13 14:24:56 +02:00
committed by Anthony LC
parent 14a91a5698
commit ae9555284d
9 changed files with 32 additions and 20 deletions

View File

@@ -119,7 +119,9 @@ export const addNewMember = async (
await page.getByRole('button', { name: 'Validate' }).click();
await expect(page.getByText(`User added to the document.`)).toBeVisible();
await expect(
page.getByText(`User ${users[index].email} added to the document.`),
).toBeVisible();
return users[index].email;
};