forked from opentiny/tiny-vue
10 lines
461 B
TypeScript
10 lines
461 B
TypeScript
import { test, expect } from '@playwright/test'
|
|
|
|
test('size', async ({ page }) => {
|
|
page.on('pageerror', (exception) => expect(exception).toBeNull())
|
|
await page.goto('autocomplete#size')
|
|
await page.getByRole('textbox', { name: '请输入内容', exact: true }).click()
|
|
await page.getByRole('option', { name: 'WWWW科技YX公司' }).click()
|
|
await expect(page.locator('//div[@class="tiny-input tiny-input-medium"]')).toHaveClass(/tiny-input-medium/)
|
|
})
|