Skip to content

Commit 6ddc5b1

Browse files
committed
fix(tests): set default timeout high + specific timeout's on expected expect's
1 parent 3656aeb commit 6ddc5b1

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

loama/tests/permission-table.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import authSetup from "./auth.setup";
44
test.beforeEach(authSetup);
55

66
test.describe("Permission table", () => {
7+
test.beforeEach(async ({ context }) => {
8+
context.setDefaultTimeout(30000);
9+
});
710
test("Can add & remove webId subject", async ({ page }) => {
811
await page.getByText("README").click();
912

loama/tests/resource-explorer.spec.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,20 @@ import authSetup from './auth.setup';
44
test.beforeEach(authSetup);
55

66
test.describe("Resource Explorer", () => {
7+
test.beforeEach(async ({ context }) => {
8+
context.setDefaultTimeout(30000);
9+
});
10+
711
test("Can enter container", async ({ page }) => {
8-
await page.getByRole("button", { name: "View resources" }).click();
9-
const breadcrumsElement = page.locator("#explorer-breadcrumbs");
10-
expect(breadcrumsElement).toContainText("/home/profile/");
12+
await page.getByText('profileView resources').getByRole("button", { name: "View resources" }).click();
13+
await expect(page.locator(".left-panel").getByText("card")).toBeVisible({
14+
timeout: 30000,
15+
});
1116

12-
expect(page.getByText("card")).toBeVisible();
17+
const breadcrumsElement = page.locator("#explorer-breadcrumbs");
18+
await expect(breadcrumsElement).toContainText("/home/profile/", {
19+
timeout: 30000,
20+
});
1321
})
1422
test("Can go up a level", async ({ page }) => {
1523
await page.getByRole("button", { name: "View resources" }).click();

0 commit comments

Comments
 (0)