Skip to content

Commit

Permalink
Tests screenshots 3
Browse files Browse the repository at this point in the history
  • Loading branch information
danielzhe committed Aug 6, 2024
1 parent f916099 commit 512a274
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ test.describe("Move external node - Decision", () => {
await editor.changeTab({ tab: TabName.EDITOR });
await palette.dragNewNode({
type: NodeType.DECISION_SERVICE,
targetPosition: { x: 200, y: 10 },
targetPosition: { x: 250, y: 50 },
thenRenameTo: DefaultNodeName.DECISION_SERVICE + " 1",
});
await palette.dragNewNode({
type: NodeType.DECISION_SERVICE,
targetPosition: { x: 600, y: 10 },
targetPosition: { x: 650, y: 50 },
thenRenameTo: DefaultNodeName.DECISION_SERVICE + " 2",
});

Expand All @@ -128,7 +128,7 @@ test.describe("Move external node - Decision", () => {
nodeName: "Sum",
targetPosition: {
x: 600,
y: 350,
y: 400,
},
});

Expand All @@ -137,25 +137,25 @@ test.describe("Move external node - Decision", () => {
nodeName: "Diff",
targetPosition: {
x: 200,
y: 350,
y: 400,
},
});

// We're hiding the panel now.
await palette.toggleExternalNodesPanel();

await diagram.resetFocus();
await nodes.move({ name: "Sum", targetPosition: { x: 300, y: 110 } });
await nodes.move({ name: "Diff", targetPosition: { x: 300, y: 250 } });
await nodes.move({ name: "Sum", targetPosition: { x: 350, y: 150 } });
await nodes.move({ name: "Diff", targetPosition: { x: 350, y: 250 } });
await nodes.move({ name: DefaultNodeName.DECISION_SERVICE + " 1", targetPosition: { x: 200, y: 300 } });
await nodes.move({ name: DefaultNodeName.DECISION_SERVICE + " 2", targetPosition: { x: 600, y: 300 } });

await expect(diagram.get()).toHaveScreenshot("move-external-decision-from-ds-to-another-ds-before-move.png");

await diagram.resetFocus();

await nodes.move({ name: "Sum", targetPosition: { x: 650, y: 350 } });
await nodes.move({ name: "Diff", targetPosition: { x: 650, y: 500 } });
await nodes.move({ name: "Sum", targetPosition: { x: 680, y: 350 } });
await nodes.move({ name: "Diff", targetPosition: { x: 680, y: 500 } });

// We move it to make it sure that the nodes are added inside the Decision Services
// and are really attached to it, not only "visually over it".
Expand Down

0 comments on commit 512a274

Please sign in to comment.