Skip to content

Commit de88ccd

Browse files
committed
fix(tree): fix e2e test
1 parent f1448cc commit de88ccd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/sites/demos/pc/app/tree/filter-view.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ test('测试过滤视图', async ({ page }) => {
77
const preview = page.locator('.pc-demo-container')
88
const tree = preview.locator('.tiny-tree').nth(0)
99
const btnPlain = preview.getByText('平铺视图 plain')
10-
const btnHighlight = preview.getByRole('radio', { name: '高亮' })
10+
const btnHighlight = preview.getByRole('radio', { name: '高亮' }).nth(0)
1111
const checkboxs = tree.locator('.tiny-tree__plain-node .tiny-checkbox')
1212
const highlightNodes = tree.locator('.tiny-tree__plain-node .tiny-hl-query-node')
1313
const input = preview.locator('.tiny-input input')

0 commit comments

Comments
 (0)