mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-25 06:33:09 +03:00
try a then
This commit is contained in:
parent
f54c7ffa58
commit
3a279519bd
@ -2,14 +2,21 @@ const PercyScript = require('@percy/script')
|
||||
|
||||
PercyScript.run(async (page, percySnapshot) => {
|
||||
await page.goto('http://localhost:8000')
|
||||
await page.waitFor('#categories')
|
||||
await page.evaluate (() => {
|
||||
let categories = Array.from(document.querySelectorAll('#categories a'))
|
||||
await page.waitFor('#categories').then(x => {
|
||||
console.log(x)
|
||||
const categories = Array.from(document.querySelectorAll('#categories a'))
|
||||
console.log(categories)
|
||||
console.log('test')
|
||||
})
|
||||
|
||||
|
||||
//
|
||||
// await page.evaluate (() => {
|
||||
// let categories = Array.from(document.querySelectorAll('#categories a'))
|
||||
// console.log(categories)
|
||||
// console.log('test')
|
||||
// })
|
||||
|
||||
|
||||
await page.goto('http://localhost:8000/#category/Animations')
|
||||
await page.waitFor('#animations')
|
||||
await percySnapshot('Animations')
|
||||
|
Loading…
Reference in New Issue
Block a user