Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

app.spec.ts

11 lines411 Bytes

1import { expect, test } from '@playwright/test'
2​
3test('opening the app', async ({ page }) => {
4 await page.goto('/')
5​
6 await page.waitForLoadState('networkidle')
7 await expect(page.getByTestId('add-button')).toContainText('Add 1 to 0?')
8 await page.getByTestId('add-button').click()
9 await page.waitForLoadState('networkidle')
10 await expect(page.getByTestId('add-button')).toContainText('Add 1 to 1?')
11})