Skip to content

Commit 5e06144

Browse files
authored
fix(e2e): fix amount's e2e test (#3685)
1 parent ccdd1f2 commit 5e06144

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/sites/demos/pc/app/amount/custom-service.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ test('自定义服务', async ({ page }) => {
1010
.filter({ hasText: /^MZNCNY$/ })
1111
.getByRole('textbox')
1212
.click()
13-
await page.getByRole('listitem', { name: 'MZN' }).locator('div').click()
13+
await page.getByRole('listitem').filter({ hasText: /MZN/ }).locator('div').click()
1414
await page.getByRole('tooltip', { name: '币种 MZN 金额 确定 重置' }).getByRole('textbox').nth(1).click()
1515
await page.getByRole('tooltip', { name: '币种 MZN 金额 确定 重置' }).getByRole('textbox').nth(1).fill('100')
1616
await page.getByRole('button', { name: '确定' }).click()

examples/sites/demos/pc/app/base-select/slot-reference.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ test('custom-reference', async ({ page }) => {
1212

1313
await expect(option).toHaveCount(0)
1414
await reference.click()
15-
await page.getByRole('listitem', { name: '北京' }).locator('span').click()
15+
await page.getByRole('listitem').filter({ hasText: // }).locator('span').click()
1616
})

examples/sites/demos/pc/app/input/basic-usage.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { test, expect } from '@playwright/test'
33
test('基本示例', async ({ page }) => {
44
page.on('pageerror', (exception) => expect(exception).toBeNull())
55
await page.goto('input#basic-usage')
6-
const input = page.locator('.demo-input > .tiny-input > .tiny-input-display-only > input')
6+
const input = page.locator('#basic-usage .demo-input > .tiny-input > .tiny-input-display-only > input')
77

88
await expect(input).toBeVisible()
99
await expect(input).toHaveAttribute('placeholder', 'Please input')

0 commit comments

Comments
 (0)