tiny-vue_version0/examples/sites/demos/pc/app/text-popup/width.spec.ts

12 lines
358 B
TypeScript

import { test, expect } from '@playwright/test'
test('Textpopup 宽度', async ({ page }) => {
page.on('pageerror', (exception) => expect(exception).toBeNull())
await page.goto('text-popup#width')
const preview = page.locator('#width')
const textPopup = preview.locator('.tiny-text-popup')
await expect(textPopup).toHaveCSS('width', '500px')
})