From 1b5f9bf62ddd9655b8ed6ff66f3af8ad0603e132 Mon Sep 17 00:00:00 2001 From: Nicolas Meienberger Date: Fri, 13 Mar 2026 23:27:52 +0100 Subject: [PATCH] test(e2e): give more time for folders to load --- e2e/0002-backup-restore.spec.ts | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/e2e/0002-backup-restore.spec.ts b/e2e/0002-backup-restore.spec.ts index 3f81f016..be33b125 100644 --- a/e2e/0002-backup-restore.spec.ts +++ b/e2e/0002-backup-restore.spec.ts @@ -427,13 +427,21 @@ test("backup respects include globs, exclusion patterns, and exclude-if-present" await folderRow.locator("svg").first().click(); } - await expect(page.getByRole("button", { name: /keep\.xyz/ })).toBeVisible(); - await expect(page.getByRole("button", { name: /second\.xyz/ })).toBeVisible(); - await expect(page.getByRole("button", { name: /glob-only\.xyz/ })).toBeVisible(); - await expect(page.getByRole("button", { name: new RegExp(dataIncludedFile.replace(".", "\\.")) })).toBeVisible(); - await expect(page.getByRole("button", { name: new RegExp(configIncludedFile.replace(".", "\\.")) })).toBeVisible(); - await expect(page.getByRole("button", { name: new RegExp(rootDbFile.replace(".", "\\.")) })).toBeVisible(); - await expect(page.getByRole("button", { name: new RegExp(secondRootDbFile.replace(".", "\\.")) })).toBeVisible(); + await expect(page.getByRole("button", { name: /keep\.xyz/ })).toBeVisible({ timeout: 15000 }); + await expect(page.getByRole("button", { name: /second\.xyz/ })).toBeVisible({ timeout: 15000 }); + await expect(page.getByRole("button", { name: /glob-only\.xyz/ })).toBeVisible({ timeout: 15000 }); + await expect(page.getByRole("button", { name: new RegExp(dataIncludedFile.replace(".", "\\.")) })).toBeVisible({ + timeout: 15000, + }); + await expect(page.getByRole("button", { name: new RegExp(configIncludedFile.replace(".", "\\.")) })).toBeVisible({ + timeout: 15000, + }); + await expect(page.getByRole("button", { name: new RegExp(rootDbFile.replace(".", "\\.")) })).toBeVisible({ + timeout: 15000, + }); + await expect(page.getByRole("button", { name: new RegExp(secondRootDbFile.replace(".", "\\.")) })).toBeVisible({ + timeout: 15000, + }); await expect(page.getByRole("button", { name: /\.DS_Store/ })).toHaveCount(0); await expect(page.getByRole("button", { name: /skip\.tmp/ })).toHaveCount(0);