10 lines
395 B
TypeScript
10 lines
395 B
TypeScript
import { test, expect } from '@playwright/test'
|
||
|
||
test('值改变事件', async ({ page }) => {
|
||
page.on('pageerror', (exception) => expect(exception).toBeNull())
|
||
await page.goto('http://localhost:7130/pc/numeric/change-event')
|
||
|
||
const increaseBtn = page.locator('.tiny-numeric__increase')
|
||
await increaseBtn.click()
|
||
await expect(page.getByText('新值:2,旧值:1')).toBeVisible()
|
||
}) |