MCPcopy Create free account
hub / github.com/GoogleChrome/webstatus.dev / dismissToast

Function dismissToast

e2e/tests/utils.ts:241–245  ·  view source on GitHub ↗
(page: Page)

Source from the content-addressed store, hash-verified

239 }
240}
241
242export async function dismissToast(page: Page) {
243 const toast = page.locator('sl-alert[variant="danger"][open]');
244 await toast.locator('sl-icon-button[name="x-lg"]').click();
245 await expect(toast).not.toBeVisible();
246}
247
248export async function freezeAnimations(page: Page) {

Callers 1

login.spec.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected