diff --git a/script/percy-tests.js b/script/percy-tests.js index 896d8493..b8f736c2 100644 --- a/script/percy-tests.js +++ b/script/percy-tests.js @@ -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')