forked from opentiny/tiny-vue
11 lines
393 B
TypeScript
11 lines
393 B
TypeScript
import { test, expect } from '@playwright/test'
|
|
|
|
test('设置数据源', async ({ page }) => {
|
|
page.on('pageerror', (exception) => expect(exception).toBeNull())
|
|
await page.goto('user-contact#data-source')
|
|
const partBox = page.locator('.dropdown-part')
|
|
await partBox.hover()
|
|
const imageUrl = page.locator('.tiny-user-contact').first()
|
|
await expect(imageUrl).toHaveText('小红')
|
|
})
|