forked from opentiny/tiny-vue
19 lines
690 B
TypeScript
19 lines
690 B
TypeScript
import { test, expect } from '@playwright/test'
|
|
|
|
test('process-designer 基本用法', async ({ page }) => {
|
|
page.on('pageerror', (exception) => expect(exception).toBeNull())
|
|
await page.goto('process-designer#basic-usage')
|
|
|
|
const wrap = page.locator('#basic-usage')
|
|
const designer = wrap.locator('.tiny-process-designer')
|
|
await expect(designer).toBeVisible()
|
|
|
|
// bpmn-js 渲染完成后画布内会出现 SVG
|
|
const svg = designer.locator('.tiny-process-designer__canvas svg').first()
|
|
await expect(svg).toBeVisible()
|
|
|
|
// 工具栏按钮存在
|
|
const toolbar = designer.locator('.tiny-process-designer__toolbar')
|
|
await expect(toolbar.locator('button')).toHaveCount(7)
|
|
})
|