10 lines
372 B
TypeScript
10 lines
372 B
TypeScript
import { test, expect } from '@playwright/test'
|
|
|
|
test('禁用', async ({ page }) => {
|
|
page.on('pageerror', (exception) => expect(exception).toBeNull())
|
|
await page.goto('currency#disable-currency')
|
|
await page.getByRole('button', { name: '启用/禁用' }).click()
|
|
const inputBox = page.locator('.tiny-input input').nth(1)
|
|
await expect(inputBox).toBeDisabled()
|
|
})
|