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

Function waitForChartCompletion

e2e/tests/utils.ts:55–62  ·  view source on GitHub ↗
(page: Page, containerId: string)

Source from the content-addressed store, hash-verified

53 await forceTheme(page, 'light');
54}
55
56export async function waitForChartCompletion(page: Page, containerId: string) {
57 const chartContainer = page.locator(`#${containerId}`);
58 // First wait for the chart component to be attached to the DOM
59 await expect(chartContainer).toBeAttached({timeout: 10000});
60 // Then wait for the internal \`webstatus-gchart\` to drop its \`.loading\` spinner
61 const loadingOverlay = chartContainer.locator('webstatus-gchart .loading');
62 await expect(loadingOverlay).toHaveCount(0, {timeout: 10000});
63}
64
65export async function waitForTabbedChartCompletion(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected