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