浏览代码

test: 覆盖权限抽屉遮罩关闭

main
leiyun 3 周前
父节点
当前提交
8e4ad5375a
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      tests/zentao-system-ui-regression.spec.ts

+ 2
- 0
tests/zentao-system-ui-regression.spec.ts 查看文件

@@ -114,6 +114,8 @@ test('角色配置权限改为固定头尾的授权抽屉', async ({ page }, tes
expect(footerBox).not.toBeNull() expect(footerBox).not.toBeNull()
expect(Math.abs((drawerBox!.y + drawerBox!.height) - (footerBox!.y + footerBox!.height))).toBeLessThanOrEqual(2) expect(Math.abs((drawerBox!.y + drawerBox!.height) - (footerBox!.y + footerBox!.height))).toBeLessThanOrEqual(2)
await captureScreenshot(page, testInfo, 'role-permission-drawer-fixed-actions') await captureScreenshot(page, testInfo, 'role-permission-drawer-fixed-actions')
await page.locator('.el-overlay.is-drawer').filter({ has: drawer }).click({ position: { x: 12, y: 12 } })
await expect(drawer).toBeHidden()
}) })


test('编辑部门使用统一选人组件', async ({ page }, testInfo) => { test('编辑部门使用统一选人组件', async ({ page }, testInfo) => {


正在加载...
取消
保存