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

app.spec.ts

10 lines276 Bytes

1import { expect } from '@playwright/test'
2import { test } from '@tanstack/router-e2e-utils'
3​
4test.beforeEach(async ({ page }) => {
5 await page.goto('/')
6})
7​
8test('should load', async ({ page }) => {
9 await expect(page.getByRole('heading')).toContainText('Welcome Home!')
10})