assert that page state continues working

This commit is contained in:
Simon Knott 2025-02-03 12:53:51 +01:00
parent a8ad8eff37
commit 015ceb0fbc
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -399,4 +399,12 @@ it('should support IndexedDB', async ({ page, contextFactory }) => {
const context = await contextFactory({ storageState }); const context = await contextFactory({ storageState });
expect(await context.storageState()).toEqual(storageState); expect(await context.storageState()).toEqual(storageState);
const recreatedPage = await context.newPage();
await recreatedPage.goto('https://mdn.github.io/dom-examples/to-do-notifications/');
await expect(recreatedPage.locator('#task-list')).toMatchAriaSnapshot(`
- list:
- listitem:
- text: /Pet the cat/
`);
}); });