Skip to content

Commit

Permalink
fix resize group tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jomarko committed Apr 2, 2024
1 parent e4ac5aa commit 1e12b1e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});
});

0 comments on commit 1e12b1e

Please sign in to comment.