Open History to see the last commit
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})