Skip to content

Commit 20b4d8d

Browse files
committed
test: fix flaky test for webkit engine by putting query inside waiting assertion
1 parent b6b25c4 commit 20b4d8d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Diff for: dashboard/src/tests/e2e/project.test.ts

+5-4
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@ test("routes to the selected pipeline page after clicking on the selected pipeli
3737
});
3838
await pipelineLink.click();
3939

40-
const pipelineMetadataHeading = page.getByRole("heading", {
41-
name: `Pipeline #${pipelineId} metadata`
42-
});
43-
await expect(pipelineMetadataHeading).toBeVisible();
40+
await expect(
41+
page.getByRole("heading", {
42+
name: `Pipeline #${pipelineId} metadata`
43+
})
44+
).toBeVisible();
4445
});
4546

4647
test("routes to the selected run page after clicking on the selected run link", async ({

0 commit comments

Comments
 (0)