diff --git a/tests/user.ts b/tests/user.ts index 1b79453..21bf2cf 100644 --- a/tests/user.ts +++ b/tests/user.ts @@ -41,6 +41,7 @@ export default class User { let dropdown = page.locator("div.dropdown:nth-child(4)"); await dropdown.click(); // await dropdown.getByRole("link", { name: "Sign Out" }).click(); + await dropdown.getByText("Sign Out").waitFor(); await dropdown.getByText("Sign Out").click(); await page.waitForURL(config.INSTANCE_URL.toString());