From 3da9db3cf858b886f83496161064d4b04826d7cf Mon Sep 17 00:00:00 2001 From: Florian Date: Mon, 15 Jan 2024 17:44:02 +0100 Subject: [PATCH] Make file uploading more robust Addresses RISDEV-0000 --- frontend/test/e2e/caselaw/e2e-utils.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/test/e2e/caselaw/e2e-utils.ts b/frontend/test/e2e/caselaw/e2e-utils.ts index 2a95cd369b..ac4f0fdd89 100644 --- a/frontend/test/e2e/caselaw/e2e-utils.ts +++ b/frontend/test/e2e/caselaw/e2e-utils.ts @@ -34,7 +34,9 @@ export const uploadTestfile = async (page: Page, filename: string) => { page.locator("text=oder Datei auswählen").click(), ]) await fileChooser.setFiles("./test/e2e/caselaw/testfiles/" + filename) - await expect(page.getByLabel("Ladestatus")).toBeHidden() + await expect(async () => { + await expect(page.getByLabel("Ladestatus")).not.toBeAttached() + }).toPass({ timeout: 15000 }) } export async function waitForSaving(