docs: fix auth example (#4528)
We should wait for selector instead of asserting it.
This commit is contained in:
parent
62f7437a2c
commit
8cc8b777d0
|
|
@ -50,5 +50,5 @@ const account = { login: '', password: '' };
|
|||
|
||||
const verifyIsLoggedIn = async (page) => {
|
||||
await page.click('summary[aria-label="View profile and more"]')
|
||||
assert(await page.$(`text="Your profile"`));
|
||||
assert(await page.waitForSelector(`text="Your profile"`));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue