-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
No cross-origin isolation in WebKit :(
- Loading branch information
1 parent
da31298
commit 63b1807
Showing
2 changed files
with
29 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { test, expect } from '../fixtures'; | ||
|
||
test.describe( 'Cross-Origin Isolation', () => { | ||
test( 'should be enabled by default', async ( { | ||
admin, | ||
page, | ||
browserName, | ||
} ) => { | ||
test.skip( | ||
browserName === 'webkit', | ||
'No cross-origin isolation in Playwright WebKit builds yet, see https://github.com/microsoft/playwright/issues/28513' | ||
); | ||
|
||
await admin.createNewPost(); | ||
|
||
const crossOriginIsolated = await page.evaluate( () => { | ||
return Boolean( window.crossOriginIsolated ); | ||
} ); | ||
expect( crossOriginIsolated ).toBe( true ); | ||
} ); | ||
} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters