Open History to see the last commit
1import { test, expect } from '@playwright/test'
2import { DevtoolsPage } from '@tanstack/devtools-e2e'
3β
4test('devtools mount and the trigger opens the panel', async ({ page }) => {
5 const dt = new DevtoolsPage(page)
6 await dt.goto()
7 await expect(dt.trigger()).toBeVisible()
8 await expect(dt.panel()).toHaveAttribute('data-open', 'false')
9 await dt.openViaTrigger()
10 await expect(dt.panel()).toHaveAttribute('data-open', 'true')
11})