Skip to content

Commit

Permalink
Add logging to debug why failing integration tests aren't being recorded
Browse files Browse the repository at this point in the history
  • Loading branch information
jaril committed Oct 5, 2022
1 parent 9a38d53 commit 0e14358
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions run-tests.js
Expand Up @@ -245,6 +245,9 @@ async function main() {

const shouldRecordTestWithReplay = process.env.RECORD_REPLAY && isRetry

console.log(`>>>env:${process.env.RECORD_REPLAY}, isRetry:${isRetry}`)
console.log('>>>shouldRecordTest: ', shouldRecordTestWithReplay)

const child = spawn(
jestPath,
[
Expand Down
2 changes: 2 additions & 0 deletions test/lib/next-webdriver.ts
Expand Up @@ -85,10 +85,12 @@ export default async function webdriver(
CurrentInterface = Selenium
browserQuit = quit
} else if (process.env.RECORD_REPLAY === 'true') {
console.log('>>>browser:replay')
const { Replay, quit } = await require('./browsers/replay')
CurrentInterface = Replay
browserQuit = quit
} else {
console.log('>>>browser:playwright')
const { Playwright, quit } = await import('./browsers/playwright')
CurrentInterface = Playwright
browserQuit = quit
Expand Down

0 comments on commit 0e14358

Please sign in to comment.