diff --git a/loama/tests/permission-table.spec.ts b/loama/tests/permission-table.spec.ts index 10b2f92..7efc02d 100644 --- a/loama/tests/permission-table.spec.ts +++ b/loama/tests/permission-table.spec.ts @@ -4,6 +4,9 @@ import authSetup from "./auth.setup"; test.beforeEach(authSetup); test.describe("Permission table", () => { + test.beforeEach(async ({ context }) => { + context.setDefaultTimeout(30000); + }); test("Can add & remove webId subject", async ({ page }) => { await page.getByText("README").click(); diff --git a/loama/tests/resource-explorer.spec.ts b/loama/tests/resource-explorer.spec.ts index 76f66b0..614ef5e 100644 --- a/loama/tests/resource-explorer.spec.ts +++ b/loama/tests/resource-explorer.spec.ts @@ -4,12 +4,20 @@ import authSetup from './auth.setup'; test.beforeEach(authSetup); test.describe("Resource Explorer", () => { + test.beforeEach(async ({ context }) => { + context.setDefaultTimeout(30000); + }); + test("Can enter container", async ({ page }) => { - await page.getByRole("button", { name: "View resources" }).click(); - const breadcrumsElement = page.locator("#explorer-breadcrumbs"); - expect(breadcrumsElement).toContainText("/home/profile/"); + await page.getByText('profileView resources').getByRole("button", { name: "View resources" }).click(); + await expect(page.locator(".left-panel").getByText("card")).toBeVisible({ + timeout: 30000, + }); - expect(page.getByText("card")).toBeVisible(); + const breadcrumsElement = page.locator("#explorer-breadcrumbs"); + await expect(breadcrumsElement).toContainText("/home/profile/", { + timeout: 30000, + }); }) test("Can go up a level", async ({ page }) => { await page.getByRole("button", { name: "View resources" }).click();