Skip to content

Commit 0ebd3d9

Browse files
author
Shane Osbourne
committed
ensure the polyfill loads before the JS script
1 parent 91b4f0e commit 0ebd3d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

integration-test/playwright/windows-permissions.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { mockWindowsMessaging, wrapWindowsScripts } from '@duckduckgo/messaging/
44

55
test('Windows Permissions Usage', async ({ page }) => {
66
const perms = new WindowsPermissionsSpec(page)
7-
await page.evaluate(() => {
7+
await page.addInitScript(() => {
88
// @ts-expect-error - testing
99
if (typeof Bluetooth === 'undefined') {
1010
// @ts-expect-error - testing

0 commit comments

Comments
 (0)