diff --git a/examples/sites/demos/pc/app/grid/tree-table/tree-grid-insert-delete-update-composition-api.vue b/examples/sites/demos/pc/app/grid/tree-table/tree-grid-insert-delete-update-composition-api.vue index 64ef7d3aca..de557a4fc8 100644 --- a/examples/sites/demos/pc/app/grid/tree-table/tree-grid-insert-delete-update-composition-api.vue +++ b/examples/sites/demos/pc/app/grid/tree-table/tree-grid-insert-delete-update-composition-api.vue @@ -18,9 +18,9 @@ - + - + { await page.locator('.tiny-grid-toolbar').click() await page.getByRole('button', { name: '确定' }).click() await expect(page.getByRole('cell', { name: 'zzcd' })).toBeVisible() - await page.getByRole('row', { name: '1 新数据' }).locator('path').nth(1).click() + await page.getByRole('row', { name: '1 新数据' }).locator('.tiny-grid-checkbox__icon').first().click() await page.getByRole('button', { name: '移除选中' }).click() await expect(page.getByRole('cell', { name: 'zzcd' })).not.toBeVisible() }) @@ -18,7 +18,11 @@ test.describe('树表增删改功能', () => { test('树表修改测试', async ({ page }) => { page.on('pageerror', (exception) => expect(exception).toBeNull()) await page.goto('grid-tree-table#tree-table-tree-grid-insert-delete-update') - await page.getByRole('row', { name: '2 WWWW科技YX公司 华南区 500' }).getByRole('img').first().click() + await page + .getByRole('row', { name: '2 WWWW科技YX公司 华南区 500' }) + .locator('.tiny-grid-tree-wrapper') + .first() + .click() await page.getByRole('row', { name: '3 WWWW科技股份有限子公司 华南区 720' }).getByText('华南区').first().click() await page.getByRole('row', { name: '3 WWWW科技股份有限子公司 720' }).getByRole('textbox').first().click() await page.getByRole('row', { name: '3 WWWW科技股份有限子公司 720' }).getByRole('textbox').fill('华南区ee') diff --git a/examples/sites/demos/pc/app/grid/tree-table/tree-grid-insert-delete-update.vue b/examples/sites/demos/pc/app/grid/tree-table/tree-grid-insert-delete-update.vue index d9d479aa16..1634f5b126 100644 --- a/examples/sites/demos/pc/app/grid/tree-table/tree-grid-insert-delete-update.vue +++ b/examples/sites/demos/pc/app/grid/tree-table/tree-grid-insert-delete-update.vue @@ -18,9 +18,9 @@ - + - +