From 3a0f942270d320afccc756d126c66111cba02778 Mon Sep 17 00:00:00 2001 From: Zeke Zhang <958414905@qq.com> Date: Fri, 23 Feb 2024 15:17:28 +0800 Subject: [PATCH] test: fix e2e --- .../src/client/__e2e__/fields/color/schemaSettings.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/color/schemaSettings.test.ts b/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/color/schemaSettings.test.ts index 3717ea6aa..5bbb8fa95 100644 --- a/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/color/schemaSettings.test.ts +++ b/packages/plugins/@nocobase/plugin-collection-manager/src/client/__e2e__/fields/color/schemaSettings.test.ts @@ -216,7 +216,10 @@ test.describe('form item & view form', () => { await page.getByRole('dialog').getByRole('textbox').fill('testing edit tooltip'); await page.getByRole('button', { name: 'OK', exact: true }).click(); - await page.getByRole('img', { name: 'question-circle' }).hover(); + await page + .getByLabel('block-item-CollectionField-general-form-general.color-color') + .getByRole('img', { name: 'question-circle' }) + .hover(); await expect(page.getByText('testing edit tooltip')).toBeVisible(); }); });