fix(select): fix e2e (#3584)
This commit is contained in:
parent
ffd7678b7b
commit
65bc127da8
|
@ -28,7 +28,7 @@ test.describe('下拉表格远程搜索', () => {
|
|||
const row2 = page.getByRole('row', { name: '省份 2 城市 2 区域 2' })
|
||||
await expect(row2).not.toBeVisible()
|
||||
await row1.getByRole('cell').first().click()
|
||||
await expect(row1).toHaveClass(/tiny-grid-body__row row__current/)
|
||||
await expect(row1).toHaveClass(/row__current/)
|
||||
await expect(input).toHaveValue('省 1-市 1')
|
||||
|
||||
const row3 = page.getByRole('row', { name: '省份 10 城市 10 区域 10' })
|
||||
|
|
|
@ -21,7 +21,7 @@ test('嵌套表格(单选)', async ({ page }) => {
|
|||
await row.nth(1).getByRole('cell').first().click()
|
||||
await expect(input).toHaveValue('深圳 1')
|
||||
await input.click()
|
||||
await expect(row.filter({ hasText: '深圳 1' })).toHaveClass(/tiny-grid-body__row row__current/)
|
||||
await expect(row.filter({ hasText: '深圳 1' })).toHaveClass(/row__current/)
|
||||
})
|
||||
|
||||
test('嵌套表格(多选)', async ({ page }) => {
|
||||
|
|
|
@ -23,7 +23,7 @@ test('下拉表格大数据', async ({ page }) => {
|
|||
|
||||
await input.click()
|
||||
await page.waitForTimeout(200)
|
||||
await expect(row.nth(1)).toHaveClass(/tiny-grid-body__row row__current/)
|
||||
await expect(row.nth(1)).toHaveClass(/row__current/)
|
||||
await expect(row).toHaveCount(8)
|
||||
await expect(page.getByRole('row', { name: '华南区 12 广东省 广州市' })).toBeHidden()
|
||||
await row.nth(5).scrollIntoViewIfNeeded()
|
||||
|
|
Loading…
Reference in New Issue