Skip to content

Commit

Permalink
fix(e2e): handle javaScriptEnabled: false
Browse files Browse the repository at this point in the history
resolves #868
  • Loading branch information
danielroe committed Dec 4, 2024
1 parent 4e9f34b commit ca06f33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export async function createPage(path?: string, options?: BrowserContextOptions)
}

if (path) {
await page.goto(url(path), { waitUntil: 'hydration' })
await page.goto(url(path), options?.javaScriptEnabled === false ? {} : { waitUntil: 'hydration' })
}

return page
Expand Down

0 comments on commit ca06f33

Please sign in to comment.