tiny-vue/examples/sites/demos/pc/app/dropdown/title.spec.ts

12 lines
350 B
TypeScript

import { test, expect } from '@playwright/test'
test('自定义文本', async ({ page }) => {
page.on('pageerror', (exception) => expect(exception).toBeNull())
await page.goto('dropdown#title')
const wrap = page.locator('#title')
const dropDown = wrap.locator('.tiny-dropdown')
await expect(dropDown).toContainText('自定义文本')
})