wait for modals to open

This commit is contained in:
Matt Charlton 2019-11-19 10:56:39 +00:00 committed by Brian Hicks
parent 078912a2e1
commit 657cc5d21f

View File

@ -33,9 +33,11 @@ PercyScript.run(async (page, percySnapshot) => {
await page.waitFor('.Modals')
await percySnapshot('Modals')
await page.click('#launch-info-modal')
await page.waitFor('[role="dialog"]')
await percySnapshot('Full Info Modal')
await page.click('[aria-label="Close modal"]')
await page.click('#launch-warning-modal')
await page.waitFor('[role="dialog"]')
await percySnapshot('Full Warning Modal')
await page.click('[aria-label="Close modal"]')