Skip to content

Commit 65bc127

Browse files
authored
fix(select): fix e2e (#3584)
1 parent ffd7678 commit 65bc127

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/sites/demos/pc/app/select/nest-grid-remote.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ test.describe('下拉表格远程搜索', () => {
2828
const row2 = page.getByRole('row', { name: '省份 2 城市 2 区域 2' })
2929
await expect(row2).not.toBeVisible()
3030
await row1.getByRole('cell').first().click()
31-
await expect(row1).toHaveClass(/tiny-grid-body__row row__current/)
31+
await expect(row1).toHaveClass(/row__current/)
3232
await expect(input).toHaveValue('省 1-市 1')
3333

3434
const row3 = page.getByRole('row', { name: '省份 10 城市 10 区域 10' })

examples/sites/demos/pc/app/select/nest-grid.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ test('嵌套表格(单选)', async ({ page }) => {
2121
await row.nth(1).getByRole('cell').first().click()
2222
await expect(input).toHaveValue('深圳 1')
2323
await input.click()
24-
await expect(row.filter({ hasText: '深圳 1' })).toHaveClass(/tiny-grid-body__row row__current/)
24+
await expect(row.filter({ hasText: '深圳 1' })).toHaveClass(/row__current/)
2525
})
2626

2727
test('嵌套表格(多选)', async ({ page }) => {

examples/sites/demos/pc/app/select/nest-radio-grid-much-data.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ test('下拉表格大数据', async ({ page }) => {
2323

2424
await input.click()
2525
await page.waitForTimeout(200)
26-
await expect(row.nth(1)).toHaveClass(/tiny-grid-body__row row__current/)
26+
await expect(row.nth(1)).toHaveClass(/row__current/)
2727
await expect(row).toHaveCount(8)
2828
await expect(page.getByRole('row', { name: '华南区 12 广东省 广州市' })).toBeHidden()
2929
await row.nth(5).scrollIntoViewIfNeeded()

0 commit comments

Comments
 (0)