Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(e2e): [dept,transfer]fix dept and transfer e2e error #2739

Merged
merged 1 commit into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions examples/sites/demos/pc/app/dept/custom-service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ test('自定义服务数据', async ({ page }) => {
await page.getByText('无线网络业务架构与设计部').click()
await page
.locator('div')
.filter({ hasText: /^公司SZ技术SZ海洋网络天闻数媒贝托SZ鼎桥通信$/ })
.filter({ hasText: /^公司SZ 技术SZ 海洋网络天闻数媒贝托 SZ鼎桥通信$/ })

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure that the updated text filtering regex accurately reflects the intended text structure and does not inadvertently exclude or include unintended text.

.getByRole('textbox')
.click()
await page.getByRole('listitem').filter({ hasText: 'SZ 技术' }).click()
await page
.locator('div')
.filter({ hasText: /^一级部门测试数据室XX中国XX测试数据部测试数据XX管理部$/ })
.filter({ hasText: /^一级部门测试数据室 XX中国 XX 测试数据部测试数据 XX 管理部$/ })
.getByRole('textbox')
.click()
await page.getByRole('listitem').filter({ hasText: '测试数据室 XX' }).click()
await page
.locator('div')
.filter({ hasText: /^五级部门测试数据室XX中国XX测试数据部测试数据XX管理部$/ })
.filter({ hasText: /^五级部门测试数据室 XX中国 XX 测试数据部测试数据 XX 管理部$/ })
.getByRole('textbox')
.click()
await page.getByRole('listitem').filter({ hasText: '测试数据室 XX' }).click()
Expand Down
31 changes: 0 additions & 31 deletions examples/sites/demos/pc/app/transfer/drop-config.spec.ts

This file was deleted.

Loading