Scott Spence

Loading...

QA Wolf v2 Getting Started

1 min read
ci-cd testing e2e

I’m a bug writing machine, all developers are! We’re only human after all.

Playwright

Playwright is neat n’ all, it’s the main ‘evergreen’ browsers all on one package, so that’s Chromium, Firefox and Webkit (Safari).

Config

Use different browsers

If you want to use the other browsers that are part of QA Wolf you can specify them in the launch function:

const { context } = await launch({ browser: 'firefox' })
// launch({browser: 'chromium'})
// launch({ browser: 'firefox' })
// launch({ browser: 'webkit' })
const page = await context.newPage()

CI-CD configuration

process.env.URL || 'https://scottspence.com'
launch({ browser: 'firefox' })

launch({ browser: 'webkit' })

launch({ browser: process.env.BROWSER })

https://www.qawolf.com/docs/use-localhost#test-localhost