mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-28 08:04:06 +03:00
add basic percy capture script
This commit is contained in:
parent
794822a1d1
commit
1a95c1f16e
8
script/percy-tests.js
Normal file
8
script/percy-tests.js
Normal file
@ -0,0 +1,8 @@
|
||||
const PercyScript = require('@percy/script')
|
||||
|
||||
PercyScript.run(async (page, percySnapshot) => {
|
||||
await page.goto('http://localhost:8000/');
|
||||
// ensure the page has loaded before capturing a snapshot
|
||||
await page.waitFor('#Nri-Ui-TextInput-Writing-onBlur-demonstration!');
|
||||
await percySnapshot('homepage');
|
||||
})
|
Loading…
Reference in New Issue
Block a user