forked from opentiny/tiny-vue
19 lines
581 B
TypeScript
19 lines
581 B
TypeScript
import { test, expect } from '@playwright/test'
|
|
|
|
test('[Input]slot', async ({ page }) => {
|
|
page.on('pageerror', (exception) => expect(exception).toBeNull())
|
|
await page.goto('input#slot')
|
|
|
|
const prefix = page.locator('.tiny-input__prefix')
|
|
await expect(prefix).toBeVisible()
|
|
|
|
const append = page.locator('.tiny-input-group__append')
|
|
await expect(append).toBeVisible()
|
|
|
|
const prepend = page.locator('.tiny-input-group__prepend')
|
|
await expect(prepend).toBeVisible()
|
|
|
|
const suffix = page.locator('.tiny-input__suffix-inner')
|
|
await expect(suffix).toBeVisible()
|
|
})
|