From 5880c979ca5cbe376f61be54b5ecf1d3563449ef Mon Sep 17 00:00:00 2001 From: Zeke Zhang <958414905@qq.com> Date: Wed, 13 Dec 2023 16:56:02 +0800 Subject: [PATCH] test: make testing more stable --- .../__e2e__/schema-settings/table-column-item/relation.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/schema-settings/table-column-item/relation.test.ts b/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/schema-settings/table-column-item/relation.test.ts index af7e8073e..b031bbd33 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/schema-settings/table-column-item/relation.test.ts +++ b/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/schema-settings/table-column-item/relation.test.ts @@ -46,7 +46,7 @@ test.describe('many to one', () => { // 修改为 nickname await page.getByRole('menuitem', { name: 'Title field' }).click(); await page.getByRole('option', { name: 'Nickname' }).click(); - await expect(page.getByRole('menuitem', { name: 'Title field' })).toHaveText('Title fieldNickname'); + await page.mouse.move(300, 0); await expect(page.getByRole('cell', { name: record.manyToOne.nickname, exact: true })).toBeVisible(); });