forked from opentiny/tiny-vue
11 lines
413 B
TypeScript
11 lines
413 B
TypeScript
import { test, expect } from '@playwright/test'
|
|
|
|
test('隐藏标题区域', async ({ page }) => {
|
|
page.on('pageerror', (exception) => expect(exception).toBeNull())
|
|
await page.goto('dialog-box#hidden-header')
|
|
|
|
const dialogBox = page.locator('.tiny-dialog-box')
|
|
await page.getByRole('button', { name: '无标题' }).click()
|
|
await expect(dialogBox.locator('.tiny-dialog-box__header')).not.toBeVisible()
|
|
})
|