kbowers-ibm commented on code in PR #2441:
URL: 
https://github.com/apache/incubator-kie-tools/pull/2441#discussion_r1682447227


##########
packages/scesim-editor/tests-e2e/scesimEditor/testScenarioTable/contextMenu.spec.ts:
##########
@@ -125,5 +125,108 @@ test.describe("Test scenario table context menu", () => {
       await contextMenu.clickMenuItem({ menuItem: MenuItem.DELETE_SCENARIO });
       await expect(table.getCell({ rowNumber: "3", columnNumber: 0 
})).not.toBeAttached();
     });
+
+    test("should not render context menu on the hash header", async ({ table, 
testScenarioTable, contextMenu }) => {
+      test.skip(true, 
"https://github.com/apache/incubator-kie-issues/issues/1342";);
+      await table.getColumnHeader({ name: "#" }).click({ button: "right" });
+      await expect(contextMenu.getHeading({ heading: HeadingType.SELECTION 
})).not.toBeAttached();
+      await expect(contextMenu.getHeading({ heading: HeadingType.SCENARIO 
})).not.toBeAttached();
+      await expect(contextMenu.getHeading({ heading: HeadingType.FIELD 
})).not.toBeAttached();
+      await expect(contextMenu.getHeading({ heading: HeadingType.INSTANCE 
})).not.toBeAttached();
+      await 
expect(testScenarioTable.get()).toHaveScreenshot("test-scenario-table-hash-no-context-menu.png");

Review Comment:
   I created the images "manually "by making it left click instead of right 
click, so it would mimic the behavior of the fixed state.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to