mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-11-28 10:17:49 +03:00
wait till page has loaded
This commit is contained in:
parent
1cfcf108f0
commit
919d2a0c93
@ -2,9 +2,11 @@ const PercyScript = require('@percy/script')
|
||||
|
||||
PercyScript.run(async (page, percySnapshot) => {
|
||||
await page.goto('http://localhost:8000')
|
||||
await page.waitFor('#categories')
|
||||
const categories = document.querySelectorAll('#categories li')
|
||||
console.log(categories)
|
||||
await page.waitFor('#categories').then(() => {
|
||||
const categories = document.querySelectorAll('#categories li')
|
||||
console.log(categories)
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user