Skip to content

Commit

Permalink
test(parser): include storageState test
Browse files Browse the repository at this point in the history
  • Loading branch information
ruifigueira committed Dec 20, 2024
1 parent 7bdd0cd commit 61f4f35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/server/recorder/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,8 @@ export type TestBrowserContextOptions = Pick<BrowserContextOptions,
| 'viewport'
| 'permissions'
| 'serviceWorkers'
| 'storageState'
| 'recordHar'
>;
> & { storageState?: string };

export type TestOptions = {
deviceName?: string;
Expand Down
4 changes: 3 additions & 1 deletion tests/crx/parse.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ test.use({
locale: 'pt_PT',
permissions: ['geolocation'],
serviceWorkers: 'block',
storageState: 'state.json',
timezoneId: 'Europe/Rome',
viewport: {
height: 728,
Expand All @@ -161,7 +162,8 @@ test('test', async ({ page }) => {
viewport: {
height: 728,
width: 1024
}
},
storageState: 'state.json',
},
});
});
Expand Down

0 comments on commit 61f4f35

Please sign in to comment.