tiny-vue_version0/examples/sites/demos/pc/app/dialog-box/no-modal.spec.ts

10 lines
334 B
TypeScript

import { test, expect } from '@playwright/test'
test('不启用遮罩层', async ({ page }) => {
page.on('pageerror', (exception) => expect(exception).toBeNull())
await page.goto('dialog-box#no-modal')
await page.getByRole('button', { name: '无遮罩' }).click()
await expect(page.locator('.v-modal')).not.toBeVisible()
})