From b9876d250c91e48eb484596a95d6f586a9711807 Mon Sep 17 00:00:00 2001 From: Gregor Vostrak Date: Tue, 23 Jan 2024 15:06:34 +0100 Subject: [PATCH] fix tests --- e2e/auth.spec.ts | 1 - e2e/organization.spec.ts | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/e2e/auth.spec.ts b/e2e/auth.spec.ts index 2c663be2..978b8c8f 100644 --- a/e2e/auth.spec.ts +++ b/e2e/auth.spec.ts @@ -23,7 +23,6 @@ test('can register, logout and log back in', async ({ page }) => { ).toBeVisible(); await page.locator('#currentUserButton').click(); await page.getByRole('button', { name: 'Log Out' }).click(); - await page.waitForLoadState('networkidle'); await page.waitForURL(PLAYWRIGHT_BASE_URL + '/'); await page.goto(PLAYWRIGHT_BASE_URL + '/login'); await page.getByLabel('Email').fill(email); diff --git a/e2e/organization.spec.ts b/e2e/organization.spec.ts index b5b1bbd6..a61fb985 100644 --- a/e2e/organization.spec.ts +++ b/e2e/organization.spec.ts @@ -21,6 +21,7 @@ test('test that new editor can be invited', async ({ page }) => { await page.getByLabel('Email').fill(`new+${editorId}@editor.test`); await page.getByRole('button', { name: 'Editor' }).click(); await page.getByRole('button', { name: 'Add' }).click(); + await page.reload(); await expect(page.getByRole('main')).toContainText( `new+${editorId}@editor.test` ); @@ -32,6 +33,7 @@ test('test that new admin can be invited', async ({ page }) => { await page.getByLabel('Email').fill(`new+${adminId}@admin.test`); await page.getByRole('button', { name: 'Administrator' }).click(); await page.getByRole('button', { name: 'Add' }).click(); + await page.reload(); await expect(page.getByRole('main')).toContainText( `new+${adminId}@admin.test` );