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

Function waitForSidebarLoaded

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

Source from the content-addressed store, hash-verified

113 .waitFor({state: 'hidden', timeout: 15000});
114}
115
116export async function waitForSidebarLoaded(page: Page) {
117 const sidebar = page.locator('webstatus-sidebar');
118 // Wait for sidebar to be attached
119 await expect(sidebar).toBeAttached({timeout: 10000});
120 // Wait for the absence of sl-skeleton inside the sidebar
121 const skeleton = sidebar.locator('sl-skeleton');
122 await expect(skeleton).toHaveCount(0, {timeout: 10000});
123}
124
125export async function gotoOverviewPageUrl(page: Page, url: string) {

Callers 9

404.spec.tsFile · 0.90
sidebar.spec.tsFile · 0.90
login.spec.tsFile · 0.90
stats-page.spec.tsFile · 0.90
gotoOverviewPageUrlFunction · 0.85
loginAsUserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected