tiny-vue/examples/sites/demos/pc/app/time-select/suffix-icon.spec.ts

9 lines
307 B
TypeScript

import { test, expect } from '@playwright/test'
test('后置图标', async ({ page }) => {
page.on('pageerror', (exception) => expect(exception).toBeNull())
await page.goto('time-select#suffix-icon')
const icon = page.locator('.tiny-input__icon-container svg')
await expect(icon).toHaveCount(1)
})