mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-11-05 08:34:38 +03:00
Adds snapshots for showing names
This commit is contained in:
parent
ae4d88ce1a
commit
0adaf8e807
@ -36,6 +36,19 @@ describe('Visual tests', function () {
|
||||
console.log(`Snapshot complete for ${name}`)
|
||||
}
|
||||
|
||||
const iconProcessing = async(name, location) => {
|
||||
await page.goto(location)
|
||||
await page.waitFor(`#${name}`)
|
||||
await percySnapshot(page, name)
|
||||
|
||||
// visible icon names snapshot
|
||||
await page.click("label");
|
||||
await page.waitForSelector(".checkbox-V5__Checked")
|
||||
await percySnapshot(page, `${name} - display icon names`)
|
||||
|
||||
console.log(`Snapshots complete for ${name}`)
|
||||
}
|
||||
|
||||
const specialProcessing = {
|
||||
'Modal': async (name, location) => {
|
||||
await page.goto(location)
|
||||
@ -49,7 +62,11 @@ describe('Visual tests', function () {
|
||||
await page.waitFor('[role="dialog"]')
|
||||
await percySnapshot(page, 'Full Warning Modal')
|
||||
await page.click('[aria-label="Close modal"]')
|
||||
}
|
||||
},
|
||||
'AssignmentIcon': iconProcessing,
|
||||
'UiIcon': iconProcessing,
|
||||
'Logo': iconProcessing,
|
||||
'Pennant': iconProcessing
|
||||
}
|
||||
|
||||
it('All', async function () {
|
||||
|
Loading…
Reference in New Issue
Block a user