Last active
January 1, 2022 20:25
-
-
Save przemyslawjanpietrzak/387488cc0387f336b2003fad6013a522 to your computer and use it in GitHub Desktop.
gremlins1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const puppeteer = require('puppeteer'); | |
(async () => { | |
const browser = await puppeteer.launch(); | |
const page = await browser.newPage(); | |
const errors = []; | |
page.on('pageerror', (error) => { | |
browserErrors.push(error); | |
}); | |
await page.goto('localhost:4200'); | |
if (browserErrors.length !== 0) { | |
errors.forEach((e) => { | |
console.error('e2e error: ', e); | |
}); | |
process.exit(1); | |
} | |
// TODO: insert gremlins | |
// TODO: run gremlins | |
// TODO: wait 5s | |
await browser.close(); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment