forked from opentiny/tiny-vue
17 lines
585 B
TypeScript
17 lines
585 B
TypeScript
import { test, expect } from '@playwright/test'
|
|
|
|
test('禁用状态', async ({ page }) => {
|
|
page.on('pageerror', (exception) => expect(exception).toBeNull())
|
|
await page.goto('radio#dynamic-disable')
|
|
|
|
const demo = page.locator('#dynamic-disable')
|
|
const row = demo.locator('.is-disabled')
|
|
|
|
await expect(row.nth(0)).toHaveClass('tiny-radio is-disabled is-checked')
|
|
await expect(row.nth(1)).toBeDisabled()
|
|
await expect(row.nth(2)).toBeDisabled()
|
|
await expect(row.nth(3)).toBeDisabled()
|
|
await expect(row.nth(4)).toBeDisabled()
|
|
await expect(row.nth(5)).toBeDisabled()
|
|
})
|