diff --git a/packages/dmn-editor/tests/e2e/__screenshots__/Google-Chrome/drdArtifacts/change-group-font.png b/packages/dmn-editor/tests/e2e/__screenshots__/Google-Chrome/drdArtifacts/change-group-font.png index c6e7ddec536..73e75da84fa 100644 Binary files a/packages/dmn-editor/tests/e2e/__screenshots__/Google-Chrome/drdArtifacts/change-group-font.png and b/packages/dmn-editor/tests/e2e/__screenshots__/Google-Chrome/drdArtifacts/change-group-font.png differ diff --git a/packages/dmn-editor/tests/e2e/__screenshots__/Google-Chrome/drdArtifacts/change-text-annotation-font.png b/packages/dmn-editor/tests/e2e/__screenshots__/Google-Chrome/drdArtifacts/change-text-annotation-font.png index c659b345a6a..79e681db8a1 100644 Binary files a/packages/dmn-editor/tests/e2e/__screenshots__/Google-Chrome/drdArtifacts/change-text-annotation-font.png and b/packages/dmn-editor/tests/e2e/__screenshots__/Google-Chrome/drdArtifacts/change-text-annotation-font.png differ diff --git a/packages/dmn-editor/tests/e2e/__screenshots__/Google-Chrome/drgElements/change-bkm-font.png b/packages/dmn-editor/tests/e2e/__screenshots__/Google-Chrome/drgElements/change-bkm-font.png index edc90f48675..740f5af13c6 100644 Binary files a/packages/dmn-editor/tests/e2e/__screenshots__/Google-Chrome/drgElements/change-bkm-font.png and b/packages/dmn-editor/tests/e2e/__screenshots__/Google-Chrome/drgElements/change-bkm-font.png differ diff --git a/packages/dmn-editor/tests/e2e/__screenshots__/Google-Chrome/drgElements/change-decision-font.png b/packages/dmn-editor/tests/e2e/__screenshots__/Google-Chrome/drgElements/change-decision-font.png index 89b456f4ac0..477a66e279b 100644 Binary files a/packages/dmn-editor/tests/e2e/__screenshots__/Google-Chrome/drgElements/change-decision-font.png and b/packages/dmn-editor/tests/e2e/__screenshots__/Google-Chrome/drgElements/change-decision-font.png differ diff --git a/packages/dmn-editor/tests/e2e/__screenshots__/Google-Chrome/drgElements/change-decision-service-font.png b/packages/dmn-editor/tests/e2e/__screenshots__/Google-Chrome/drgElements/change-decision-service-font.png index 2c91a457319..a7484d593c2 100644 Binary files a/packages/dmn-editor/tests/e2e/__screenshots__/Google-Chrome/drgElements/change-decision-service-font.png and b/packages/dmn-editor/tests/e2e/__screenshots__/Google-Chrome/drgElements/change-decision-service-font.png differ diff --git a/packages/dmn-editor/tests/e2e/__screenshots__/Google-Chrome/drgElements/change-input-data-font.png b/packages/dmn-editor/tests/e2e/__screenshots__/Google-Chrome/drgElements/change-input-data-font.png index be21e59a937..8363c070dff 100644 Binary files a/packages/dmn-editor/tests/e2e/__screenshots__/Google-Chrome/drgElements/change-input-data-font.png and b/packages/dmn-editor/tests/e2e/__screenshots__/Google-Chrome/drgElements/change-input-data-font.png differ diff --git a/packages/dmn-editor/tests/e2e/__screenshots__/Google-Chrome/drgElements/change-knowledge-source-font.png b/packages/dmn-editor/tests/e2e/__screenshots__/Google-Chrome/drgElements/change-knowledge-source-font.png index 8b40adff4d3..2913c8a8b41 100644 Binary files a/packages/dmn-editor/tests/e2e/__screenshots__/Google-Chrome/drgElements/change-knowledge-source-font.png and b/packages/dmn-editor/tests/e2e/__screenshots__/Google-Chrome/drgElements/change-knowledge-source-font.png differ diff --git a/packages/dmn-editor/tests/e2e/__screenshots__/chromium/drdArtifacts/change-group-font.png b/packages/dmn-editor/tests/e2e/__screenshots__/chromium/drdArtifacts/change-group-font.png index 14ccc19b8c1..f750974bb55 100644 Binary files a/packages/dmn-editor/tests/e2e/__screenshots__/chromium/drdArtifacts/change-group-font.png and b/packages/dmn-editor/tests/e2e/__screenshots__/chromium/drdArtifacts/change-group-font.png differ diff --git a/packages/dmn-editor/tests/e2e/__screenshots__/chromium/drdArtifacts/change-text-annotation-font.png b/packages/dmn-editor/tests/e2e/__screenshots__/chromium/drdArtifacts/change-text-annotation-font.png index 072f5745013..841bfcc420d 100644 Binary files a/packages/dmn-editor/tests/e2e/__screenshots__/chromium/drdArtifacts/change-text-annotation-font.png and b/packages/dmn-editor/tests/e2e/__screenshots__/chromium/drdArtifacts/change-text-annotation-font.png differ diff --git a/packages/dmn-editor/tests/e2e/__screenshots__/chromium/drgElements/change-bkm-font.png b/packages/dmn-editor/tests/e2e/__screenshots__/chromium/drgElements/change-bkm-font.png index 9e24805b192..a31a0cf2d9c 100644 Binary files a/packages/dmn-editor/tests/e2e/__screenshots__/chromium/drgElements/change-bkm-font.png and b/packages/dmn-editor/tests/e2e/__screenshots__/chromium/drgElements/change-bkm-font.png differ diff --git a/packages/dmn-editor/tests/e2e/__screenshots__/chromium/drgElements/change-decision-font.png b/packages/dmn-editor/tests/e2e/__screenshots__/chromium/drgElements/change-decision-font.png index e30883d7ffa..ff0515652cb 100644 Binary files a/packages/dmn-editor/tests/e2e/__screenshots__/chromium/drgElements/change-decision-font.png and b/packages/dmn-editor/tests/e2e/__screenshots__/chromium/drgElements/change-decision-font.png differ diff --git a/packages/dmn-editor/tests/e2e/__screenshots__/chromium/drgElements/change-decision-service-font.png b/packages/dmn-editor/tests/e2e/__screenshots__/chromium/drgElements/change-decision-service-font.png index 01e8379952f..ba987e780f7 100644 Binary files a/packages/dmn-editor/tests/e2e/__screenshots__/chromium/drgElements/change-decision-service-font.png and b/packages/dmn-editor/tests/e2e/__screenshots__/chromium/drgElements/change-decision-service-font.png differ diff --git a/packages/dmn-editor/tests/e2e/__screenshots__/chromium/drgElements/change-input-data-font.png b/packages/dmn-editor/tests/e2e/__screenshots__/chromium/drgElements/change-input-data-font.png index 3852ff3e467..ac560d6678e 100644 Binary files a/packages/dmn-editor/tests/e2e/__screenshots__/chromium/drgElements/change-input-data-font.png and b/packages/dmn-editor/tests/e2e/__screenshots__/chromium/drgElements/change-input-data-font.png differ diff --git a/packages/dmn-editor/tests/e2e/__screenshots__/chromium/drgElements/change-knowledge-source-font.png b/packages/dmn-editor/tests/e2e/__screenshots__/chromium/drgElements/change-knowledge-source-font.png index 0c2824558f9..de4a2757c02 100644 Binary files a/packages/dmn-editor/tests/e2e/__screenshots__/chromium/drgElements/change-knowledge-source-font.png and b/packages/dmn-editor/tests/e2e/__screenshots__/chromium/drgElements/change-knowledge-source-font.png differ diff --git a/packages/dmn-editor/tests/e2e/__screenshots__/webkit/drdArtifacts/change-group-font.png b/packages/dmn-editor/tests/e2e/__screenshots__/webkit/drdArtifacts/change-group-font.png index 13d77d47fd0..830ef81e21e 100644 Binary files a/packages/dmn-editor/tests/e2e/__screenshots__/webkit/drdArtifacts/change-group-font.png and b/packages/dmn-editor/tests/e2e/__screenshots__/webkit/drdArtifacts/change-group-font.png differ diff --git a/packages/dmn-editor/tests/e2e/__screenshots__/webkit/drdArtifacts/change-text-annotation-font.png b/packages/dmn-editor/tests/e2e/__screenshots__/webkit/drdArtifacts/change-text-annotation-font.png index aeab326556e..02c2b8e8ff6 100644 Binary files a/packages/dmn-editor/tests/e2e/__screenshots__/webkit/drdArtifacts/change-text-annotation-font.png and b/packages/dmn-editor/tests/e2e/__screenshots__/webkit/drdArtifacts/change-text-annotation-font.png differ diff --git a/packages/dmn-editor/tests/e2e/__screenshots__/webkit/drgElements/change-bkm-font.png b/packages/dmn-editor/tests/e2e/__screenshots__/webkit/drgElements/change-bkm-font.png index b22537275dc..601df29e758 100644 Binary files a/packages/dmn-editor/tests/e2e/__screenshots__/webkit/drgElements/change-bkm-font.png and b/packages/dmn-editor/tests/e2e/__screenshots__/webkit/drgElements/change-bkm-font.png differ diff --git a/packages/dmn-editor/tests/e2e/__screenshots__/webkit/drgElements/change-decision-font.png b/packages/dmn-editor/tests/e2e/__screenshots__/webkit/drgElements/change-decision-font.png index 7f4fed4c9ab..24ee549c985 100644 Binary files a/packages/dmn-editor/tests/e2e/__screenshots__/webkit/drgElements/change-decision-font.png and b/packages/dmn-editor/tests/e2e/__screenshots__/webkit/drgElements/change-decision-font.png differ diff --git a/packages/dmn-editor/tests/e2e/__screenshots__/webkit/drgElements/change-decision-service-font.png b/packages/dmn-editor/tests/e2e/__screenshots__/webkit/drgElements/change-decision-service-font.png index f9e83b9a2f0..e1358af93d9 100644 Binary files a/packages/dmn-editor/tests/e2e/__screenshots__/webkit/drgElements/change-decision-service-font.png and b/packages/dmn-editor/tests/e2e/__screenshots__/webkit/drgElements/change-decision-service-font.png differ diff --git a/packages/dmn-editor/tests/e2e/__screenshots__/webkit/drgElements/change-input-data-font.png b/packages/dmn-editor/tests/e2e/__screenshots__/webkit/drgElements/change-input-data-font.png index ad08e3074f2..77535752a83 100644 Binary files a/packages/dmn-editor/tests/e2e/__screenshots__/webkit/drgElements/change-input-data-font.png and b/packages/dmn-editor/tests/e2e/__screenshots__/webkit/drgElements/change-input-data-font.png differ diff --git a/packages/dmn-editor/tests/e2e/__screenshots__/webkit/drgElements/change-knowledge-source-font.png b/packages/dmn-editor/tests/e2e/__screenshots__/webkit/drgElements/change-knowledge-source-font.png index 9a67b99c156..7326161e313 100644 Binary files a/packages/dmn-editor/tests/e2e/__screenshots__/webkit/drgElements/change-knowledge-source-font.png and b/packages/dmn-editor/tests/e2e/__screenshots__/webkit/drgElements/change-knowledge-source-font.png differ diff --git a/packages/dmn-editor/tests/e2e/drdArtifacts/changeGroupProperties.spec.ts b/packages/dmn-editor/tests/e2e/drdArtifacts/changeGroupProperties.spec.ts index 6d91d535b21..5bb6ba85399 100644 --- a/packages/dmn-editor/tests/e2e/drdArtifacts/changeGroupProperties.spec.ts +++ b/packages/dmn-editor/tests/e2e/drdArtifacts/changeGroupProperties.spec.ts @@ -50,7 +50,7 @@ test.describe("Change Properties - Group", () => { expect(await groupPropertiesPanel.getDescription()).toBe("New Group Description"); }); - test("should change the Group node font", async ({ nodes, groupPropertiesPanel }) => { + test("should change the Group node font", async ({ diagram, nodes, groupPropertiesPanel }) => { await nodes.select({ name: DefaultNodeName.GROUP, position: NodePosition.TOP }); await groupPropertiesPanel.setFont({ fontSize: "40", @@ -62,7 +62,7 @@ test.describe("Change Properties - Group", () => { fontFamily: "Verdana", }); - await expect(nodes.get({ name: DefaultNodeName.GROUP })).toHaveScreenshot("change-group-font.png"); + await expect(diagram.get()).toHaveScreenshot("change-group-font.png"); }); test("should reset the Group node font", async ({ nodes, groupPropertiesPanel }) => { diff --git a/packages/dmn-editor/tests/e2e/drdArtifacts/changeTextAnnotationProperties.spec.ts b/packages/dmn-editor/tests/e2e/drdArtifacts/changeTextAnnotationProperties.spec.ts index f5ac0791b99..394ba96cc66 100644 --- a/packages/dmn-editor/tests/e2e/drdArtifacts/changeTextAnnotationProperties.spec.ts +++ b/packages/dmn-editor/tests/e2e/drdArtifacts/changeTextAnnotationProperties.spec.ts @@ -61,7 +61,7 @@ test.describe("Change Properties - Text Annotation", () => { expect(await textAnnotationPropertiesPanel.getDescription()).toBe("New Text Annotation Description"); }); - test("should change the Text Annotation node font", async ({ nodes, textAnnotationPropertiesPanel }) => { + test("should change the Text Annotation node font", async ({ diagram, nodes, textAnnotationPropertiesPanel }) => { await nodes.select({ name: DefaultNodeName.TEXT_ANNOTATION }); await textAnnotationPropertiesPanel.setFont({ fontSize: "40", @@ -73,9 +73,7 @@ test.describe("Change Properties - Text Annotation", () => { fontFamily: "Verdana", }); - await expect(nodes.get({ name: DefaultNodeName.TEXT_ANNOTATION })).toHaveScreenshot( - "change-text-annotation-font.png" - ); + await expect(diagram.get()).toHaveScreenshot("change-text-annotation-font.png"); }); test("should reset the Text Annotation node font", async ({ nodes, textAnnotationPropertiesPanel }) => { diff --git a/packages/dmn-editor/tests/e2e/drgElements/changeBkmProperties.spec.ts b/packages/dmn-editor/tests/e2e/drgElements/changeBkmProperties.spec.ts index eac297d513f..0a09c6f39dc 100644 --- a/packages/dmn-editor/tests/e2e/drgElements/changeBkmProperties.spec.ts +++ b/packages/dmn-editor/tests/e2e/drgElements/changeBkmProperties.spec.ts @@ -75,7 +75,7 @@ test.describe("Change Properties - BKM", () => { expect(links[0]).toHaveAttribute("href", "http://link.test.com/"); }); - test("should change the BKM node font", async ({ nodes, bkmPropertiesPanel }) => { + test("should change the BKM node font", async ({ diagram, nodes, bkmPropertiesPanel }) => { await nodes.select({ name: DefaultNodeName.BKM }); await bkmPropertiesPanel.setFont({ fontSize: "40", @@ -87,7 +87,7 @@ test.describe("Change Properties - BKM", () => { fontFamily: "Verdana", }); - await expect(nodes.get({ name: DefaultNodeName.BKM })).toHaveScreenshot("change-bkm-font.png"); + await expect(diagram.get()).toHaveScreenshot("change-bkm-font.png"); }); test("should reset the BKM node font", async ({ nodes, bkmPropertiesPanel }) => { diff --git a/packages/dmn-editor/tests/e2e/drgElements/changeDecisionProperties.spec.ts b/packages/dmn-editor/tests/e2e/drgElements/changeDecisionProperties.spec.ts index 84a806fb548..7bf084d826a 100644 --- a/packages/dmn-editor/tests/e2e/drgElements/changeDecisionProperties.spec.ts +++ b/packages/dmn-editor/tests/e2e/drgElements/changeDecisionProperties.spec.ts @@ -96,7 +96,7 @@ test.describe("Change Properties - Decision", () => { expect(links[0]).toHaveAttribute("href", "http://link.test.com/"); }); - test("should change the Decision node font", async ({ nodes, decisionPropertiesPanel }) => { + test("should change the Decision node font", async ({ diagram, nodes, decisionPropertiesPanel }) => { await nodes.select({ name: DefaultNodeName.DECISION }); await decisionPropertiesPanel.setFont({ fontSize: "40", @@ -108,7 +108,7 @@ test.describe("Change Properties - Decision", () => { fontFamily: "Verdana", }); - await expect(nodes.get({ name: DefaultNodeName.DECISION })).toHaveScreenshot("change-decision-font.png"); + await expect(diagram.get()).toHaveScreenshot("change-decision-font.png"); }); test("should reset the Decision node font", async ({ nodes, decisionPropertiesPanel }) => { diff --git a/packages/dmn-editor/tests/e2e/drgElements/changeDecisionServiceProperties.spec.ts b/packages/dmn-editor/tests/e2e/drgElements/changeDecisionServiceProperties.spec.ts index 700902dfeeb..6caf10acaa3 100644 --- a/packages/dmn-editor/tests/e2e/drgElements/changeDecisionServiceProperties.spec.ts +++ b/packages/dmn-editor/tests/e2e/drgElements/changeDecisionServiceProperties.spec.ts @@ -83,7 +83,7 @@ test.describe("Change Properties - Decision Service", () => { expect(links[0]).toHaveAttribute("href", "http://link.test.com/"); }); - test("should change the Decision Service node font", async ({ nodes, decisionServicePropertiesPanel }) => { + test("should change the Decision Service node font", async ({ diagram, nodes, decisionServicePropertiesPanel }) => { await nodes.select({ name: DefaultNodeName.DECISION_SERVICE, position: NodePosition.TOP }); await decisionServicePropertiesPanel.setFont({ fontSize: "40", @@ -95,9 +95,7 @@ test.describe("Change Properties - Decision Service", () => { fontFamily: "Verdana", }); - await expect(nodes.get({ name: DefaultNodeName.DECISION_SERVICE })).toHaveScreenshot( - "change-decision-service-font.png" - ); + await expect(diagram.get()).toHaveScreenshot("change-decision-service-font.png"); }); test("should reset the Decision Service node font", async ({ nodes, decisionServicePropertiesPanel }) => { diff --git a/packages/dmn-editor/tests/e2e/drgElements/changeInputDataProperties.spec.ts b/packages/dmn-editor/tests/e2e/drgElements/changeInputDataProperties.spec.ts index de9c401da50..b2109a5f191 100644 --- a/packages/dmn-editor/tests/e2e/drgElements/changeInputDataProperties.spec.ts +++ b/packages/dmn-editor/tests/e2e/drgElements/changeInputDataProperties.spec.ts @@ -76,7 +76,7 @@ test.describe("Change Properties - Input Data", () => { expect(links[0]).toHaveAttribute("href", "http://link.test.com/"); }); - test("should change the Input Data node font", async ({ nodes, inputDataPropertiesPanel }) => { + test("should change the Input Data node font", async ({ diagram, nodes, inputDataPropertiesPanel }) => { await nodes.select({ name: DefaultNodeName.INPUT_DATA }); await inputDataPropertiesPanel.setFont({ fontSize: "40", @@ -88,7 +88,7 @@ test.describe("Change Properties - Input Data", () => { fontFamily: "Verdana", }); - await expect(nodes.get({ name: DefaultNodeName.INPUT_DATA })).toHaveScreenshot("change-input-data-font.png"); + await expect(diagram.get()).toHaveScreenshot("change-input-data-font.png"); }); test("should reset the Input Data node font", async ({ nodes, inputDataPropertiesPanel }) => { diff --git a/packages/dmn-editor/tests/e2e/drgElements/changeKnowledgeSourceProperties.spec.ts b/packages/dmn-editor/tests/e2e/drgElements/changeKnowledgeSourceProperties.spec.ts index 14fe44e086d..b33c4afd120 100644 --- a/packages/dmn-editor/tests/e2e/drgElements/changeKnowledgeSourceProperties.spec.ts +++ b/packages/dmn-editor/tests/e2e/drgElements/changeKnowledgeSourceProperties.spec.ts @@ -89,7 +89,7 @@ test.describe("Change Properties - Knowledge Source", () => { expect(links[0]).toHaveAttribute("href", "http://link.test.com/"); }); - test("should change the Knowledge Source node font", async ({ nodes, knowledgeSourcePropertiesPanel }) => { + test("should change the Knowledge Source node font", async ({ diagram, nodes, knowledgeSourcePropertiesPanel }) => { await nodes.select({ name: DefaultNodeName.KNOWLEDGE_SOURCE }); await knowledgeSourcePropertiesPanel.setFont({ fontSize: "40", @@ -101,9 +101,7 @@ test.describe("Change Properties - Knowledge Source", () => { fontFamily: "Verdana", }); - await expect(nodes.get({ name: DefaultNodeName.KNOWLEDGE_SOURCE })).toHaveScreenshot( - "change-knowledge-source-font.png" - ); + await expect(diagram.get()).toHaveScreenshot("change-knowledge-source-font.png"); }); test("should reset the Knowledge Source node font", async ({ nodes, knowledgeSourcePropertiesPanel }) => {