Skip to content

Commit

Permalink
test(dept): [dept] Fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
wuyiping0628 committed Feb 29, 2024
1 parent 30b7fe9 commit 6d0835e
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions examples/sites/demos/pc/app/dept/custom-service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,25 @@ test('自定义服务数据', async ({ page }) => {
await page.goto('dept#custom-service')
const iconBox = page.locator('.tiny-input__suffix-inner svg')
await iconBox.first().click()
await page.getByPlaceholder('可输入部门编码或名称').click()
await page.getByPlaceholder('可输入部门编码或名称').frist().click()
await page.getByText('无线网络业务架构与设计部').click()
await page.locator('.col-xs-9 > .tiny-select > div > .tiny-input > .tiny-input__inner').first().click()
await page
.locator('div')
.filter({ hasText: /^SZSZSZ$/ })
.getByRole('textbox')
.click()
await page.getByRole('listitem').filter({ hasText: 'SZ技术' }).click()
await page.locator('div:nth-child(3) > .col-xs-9 > .tiny-select > div > .tiny-input > .tiny-input__inner').click()
await page
.locator('div')
.filter({ hasText: /^XXXXXX$/ })
.getByRole('textbox')
.click()
await page.getByRole('listitem').filter({ hasText: '测试数据室XX' }).click()
await page.locator('div:nth-child(7) > .col-xs-9 > .tiny-select > div > .tiny-input > .tiny-input__inner').click()
await page
.locator('div')
.filter({ hasText: /^XXXXXX$/ })
.getByRole('textbox')
.click()
await page.getByRole('listitem').filter({ hasText: '测试数据室XX' }).click()
await page.waitForTimeout(500)
await page.getByRole('button', { name: '确定' }).click()
Expand Down

0 comments on commit 6d0835e

Please sign in to comment.