12 lines
350 B
TypeScript
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('自定义文本')
|
|
})
|