Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nbaldzhiev/playwright-chromium-iframe-storage-state-bug
https://github.com/nbaldzhiev/playwright-chromium-iframe-storage-state-bug
chromium playwright playwright-typescript
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/nbaldzhiev/playwright-chromium-iframe-storage-state-bug
- Owner: nbaldzhiev
- Created: 2024-08-20T10:21:30.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-08-20T13:13:11.000Z (4 months ago)
- Last Synced: 2024-10-31T03:25:14.437Z (about 2 months ago)
- Topics: chromium, playwright, playwright-typescript
- Language: TypeScript
- Homepage: https://github.com/microsoft/playwright/issues/32230
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Repo to reproduce Playwright issue #32230
To reproduce:
1. clone the repository
2. install the project (`npm install` and `npx playwright install`)
3. debug test in `tests/foo.spec.ts` with a breakpoint at `await page.pause()`
4. open the browser's devtools and navigate to the Local Storage section
5. select origin `https://clausa.app.carto.com`Result (in Playwright versions `>1.37.1`):
* in chromium, the local storage item set in the `newContext` call is missing;
* in firefox, the local storage item exists (expected behaviour).```
const context = await browser.newContext({
storageState: {
cookies: [],
origins: [{ origin: 'https://clausa.app.carto.com', localStorage: [{ name: 'hello', value: 'world' }]}]
}
})
const page = await context.newPage()
```Local storage item missing in Chromium
![Local storage item missing in Chromium](https://github.com/user-attachments/assets/fad9ea25-df08-45e2-93b0-f52a26b7808a)Local storage item present in Firefox
![Local storage item present in Firefox](https://github.com/user-attachments/assets/b1947bec-b4e5-4d66-a4cd-c8e682ff442b)