Open History to see the last commit
1import { test, expect } from '@playwright/test'
2import { DevtoolsPage } from '@tanstack/devtools-e2e'
3β
4// NOTE: `@tanstack/angular-devtools` build currently fails on Windows (its build
5// script uses `rm -rf`), so this app is verified in CI (Linux), not necessarily
6// locally on Windows.
7test('angular devtools renders the demo plugin panel', async ({ page }) => {
8 const dt = new DevtoolsPage(page)
9 await dt.goto('/')
10 await dt.openViaTrigger()
11 // The @defer block + dynamic import render the standalone panel component
12 // asynchronously, so allow a generous timeout for it to appear.
13 await expect(page.getByTestId('demo-plugin')).toBeVisible({ timeout: 30_000 })
14})