Skip to content

Commit

Permalink
fix(ChromeTestConductor): launch without initial page
Browse files Browse the repository at this point in the history
  • Loading branch information
ph-fritsche committed Nov 12, 2023
1 parent e2cc345 commit 2277c35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/conductor/ChromeTestConductor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ export class ChromeTestConductor extends TestConductor {
readonly browser = puppeteer.launch({
executablePath: '/usr/bin/chromium',
headless: 'new',
waitForInitialPage: false,
args: [
'--no-sandbox',
'--disable-gpu',
'--no-startup-window',
],
}),
) {
Expand Down
2 changes: 1 addition & 1 deletion test/conductor/ChromeTestConductor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ test('conduct test', async () => {
expect(getTestFunction(suite, 2)).toHaveProperty('title', 'failing test')
expect(getTestFunction(suite, 2).result.get()).toHaveProperty('type', 'fail')

expect((await (await conductor.browser).pages()).length).toBe(1) // there is always at least one page
expect((await (await conductor.browser).pages()).length).toBe(0)
})

test('abort test', async () => {
Expand Down

0 comments on commit 2277c35

Please sign in to comment.