Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
test: prevent indexeddb race conditions (#36347)
Simon Knott2973b0b0c040
diff --git a/tests/library/browsercontext-storage-state.spec.ts b/tests/library/browsercontext-storage-state.spec.tsindex 9aed5f7466..972453e1b2 100644--- a/tests/library/browsercontext-storage-state.spec.ts+++ b/tests/library/browsercontext-storage-state.spec.ts@@ -360,10 +360,19 @@ it('should roundtrip local storage in third-party context', async ({ page, conteit('should support IndexedDB', async ({ page, server, contextFactory }) => {await page.goto(server.PREFIX + '/to-do-notifications/index.html');++ await expect(page.locator('#notifications')).toMatchAriaSnapshot(`+ - list:+ - listitem: Database initialised.+ `);await page.getByLabel('Task title').fill('Pet the cat');await page.getByLabel('Hours').fill('1');await page.getByLabel('Mins').fill('1');await page.getByText('Add Task').click();+ await expect(page.locator('#notifications')).toMatchAriaSnapshot(`+ - list:+ - listitem: "Transaction completed: database modification finished."+ `);const storageState = await page.context().storageState({ indexedDB: true });expect(storageState.origins).toEqual([