tiny-vue/examples/sites/demos/pc/app/guide/image-text.spec.ts

11 lines
296 B
TypeScript

import { test, expect } from '@playwright/test'
test('图文结合用户引导', async ({ page }) => {
page.on('pageerror', (exception) => expect(exception).toBeNull())
await page.goto('guide#image-text')
const guide = page.locator('.tiny-guide')
await expect(guide).toHaveCount(1)
})