mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-29 00:21:42 +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