(page: Page, containerId: string)
| 53 | await forceTheme(page, 'light'); |
| 54 | } |
| 55 | |
| 56 | export 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 | |
| 65 | export async function waitForTabbedChartCompletion( |
no outgoing calls
no test coverage detected