tiny-vue_version0/examples/sites/demos/pc/app/user-head/label-user-head.spec.ts

9 lines
313 B
TypeScript

import { test, expect } from '@playwright/test'
test('文字头像', async ({ page }) => {
page.on('pageerror', (exception) => expect(exception).toBeNull())
await page.goto('user-head#label-user-head')
const minBox = page.locator('.tiny-user-head__portrait')
await expect(minBox).toHaveText('文字')
})