Skip to content

Commit

Permalink
Make file uploading more robust
Browse files Browse the repository at this point in the history
Addresses RISDEV-0000
  • Loading branch information
zechmeister committed Jan 15, 2024
1 parent 5b50551 commit 3da9db3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/test/e2e/caselaw/e2e-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 3da9db3

Please sign in to comment.