forked from opentiny/tiny-vue
13 lines
411 B
TypeScript
13 lines
411 B
TypeScript
import { test, expect } from '@playwright/test'
|
|
|
|
test('hidedrop', async ({ page }) => {
|
|
page.on('pageerror', (exception) => expect(exception).toBeNull())
|
|
await page.goto('select#hide-drop')
|
|
const wrap = page.locator('#hide-drop')
|
|
const select = wrap.locator('.tiny-select')
|
|
const dropdown = page.locator('body > .tiny-select-dropdown')
|
|
|
|
await select.click()
|
|
await expect(dropdown).toBeHidden()
|
|
})
|