tiny-vue/examples/sites/demos/pc/app/popeditor/readonly.spec.ts

14 lines
421 B
TypeScript

import { test, expect } from '@playwright/test'
test('PopEditor 只读', async ({ page }) => {
page.on('pageerror', (exception) => expect(exception).toBeNull())
await page.goto('popeditor#readonly')
const preview = page.locator('#readonly')
const textBox = preview.getByRole('textbox')
const dialogBox = page.locator('.tiny-dialog-box')
await textBox.click()
await expect(dialogBox).not.toBeVisible()
})