From 1e12b1e0040612fcdd4f2beff001f0d83c9a7921 Mon Sep 17 00:00:00 2001 From: Jozef Marko Date: Thu, 28 Mar 2024 10:45:32 +0100 Subject: [PATCH] fix resize group tests --- .../e2e/__fixtures__/propertiesPanel/generalProperties.ts | 5 ++++- .../dmn-editor/tests/e2e/drdArtifacts/resizeGroup.spec.ts | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/dmn-editor/tests/e2e/__fixtures__/propertiesPanel/generalProperties.ts b/packages/dmn-editor/tests/e2e/__fixtures__/propertiesPanel/generalProperties.ts index 2c675b9ebd9..28cc11cfd48 100644 --- a/packages/dmn-editor/tests/e2e/__fixtures__/propertiesPanel/generalProperties.ts +++ b/packages/dmn-editor/tests/e2e/__fixtures__/propertiesPanel/generalProperties.ts @@ -84,7 +84,10 @@ export class GeneralProperties extends PropertiesPanelBase { } public async getNodeShape(args: { nodeName: string; position?: NodePosition }) { - await this.selectNodeToLoadPropertiesPanel({ nodeName: args.nodeName }); + await this.selectNodeToLoadPropertiesPanel({ + nodeName: args.nodeName, + position: args.position ?? NodePosition.CENTER, + }); await this.panel().getByTitle("Expand / collapse Shape").click(); const width = await this.panel().getByTestId("node-shape-width-input-box").inputValue(); diff --git a/packages/dmn-editor/tests/e2e/drdArtifacts/resizeGroup.spec.ts b/packages/dmn-editor/tests/e2e/drdArtifacts/resizeGroup.spec.ts index be52901c53a..2a4d2fc46a1 100644 --- a/packages/dmn-editor/tests/e2e/drdArtifacts/resizeGroup.spec.ts +++ b/packages/dmn-editor/tests/e2e/drdArtifacts/resizeGroup.spec.ts @@ -35,11 +35,11 @@ test.describe("Resize node - Group", () => { ( await generalProperties.getNodeShape({ nodeName: DefaultNodeName.GROUP, position: NodePosition.TOP }) ).width - ).toEqual("100"); + ).toEqual("360"); await expect( ( await generalProperties.getNodeShape({ nodeName: DefaultNodeName.GROUP, position: NodePosition.TOP }) ).height - ).toEqual("100"); + ).toEqual("360"); }); });