Fix flaky e2e test Closes #1332

This commit is contained in:
Kalle
2023-04-23 13:31:55 +03:00
parent 0c32456e72
commit d0e4945985

View File

@@ -39,6 +39,12 @@ test.describe("Top search", () => {
url: weaponBuildPage("splattershot"),
});
await expect(page.getByTestId("top500-crown")).toBeVisible();
await expect(
page
.getByTestId("build-card")
.first()
.locator(page.getByTestId("top500-crown"))
.first()
).toBeVisible();
});
});