forked from opentiny/tiny-vue
12 lines
351 B
TypeScript
12 lines
351 B
TypeScript
import { test, expect } from '@playwright/test'
|
|
|
|
test('文字居中', async ({ page }) => {
|
|
page.on('pageerror', (exception) => expect(exception).toBeNull())
|
|
await page.goto('alert#center')
|
|
|
|
const alert = page.locator('.tiny-alert')
|
|
|
|
await expect(alert).toHaveClass(/is-center/)
|
|
await expect(alert).toHaveCSS('justify-content', 'center')
|
|
})
|