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 await page.waitForLoadState('networkidle')
6β
7 const button = page.getByTestId('add-button')
8β
9 await expect(button).toContainText('Add 1 to 0?')
10β
11 await button.click()
12 await page.waitForLoadState('networkidle')
13β
14 await expect(button).toContainText('Add 1 to 1?')
15})