tiny-vue_version0/examples/sites/demos/pc/app/select/hide-drop.spec.ts

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()
})