11 lines
366 B
TypeScript
11 lines
366 B
TypeScript
import { test, expect } from '@playwright/test'
|
|
|
|
test('自定义z-index', async ({ page }) => {
|
|
page.on('pageerror', (exception) => expect(exception).toBeNull())
|
|
await page.goto('modal#z-index')
|
|
|
|
const modal = page.locator('.tiny-modal.active')
|
|
await page.getByRole('button', { name: /z-index/ }).click()
|
|
await expect(modal).toHaveCSS('z-index', '500')
|
|
})
|