fix: wait for dropdown to appear before clicking
This commit is contained in:
parent
2f699f9fe8
commit
1adc85f826
1 changed files with 1 additions and 0 deletions
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in a new issue