Skip to content

Commit

Permalink
#2189 Fixed actions image cypress test (#2190)
Browse files Browse the repository at this point in the history
Signed-off-by: Neha Gokhale <[email protected]>
  • Loading branch information
nmgokhale authored Sep 30, 2024
1 parent 68b04c0 commit 2b05e92
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions canvas_modules/harness/cypress/e2e/properties/actions.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ describe("Test of action image tooltip direction", function() {
cy.hoverOverActionImage("fall");
cy.verifyTip(null, "visible",
"This is a long tooltip for action image. Adding this line makes it a multi-line tooltip.", "left");
cy.hoverOverControl("weather-action-panel");

// Test: action image tooltip direction right
// ------------------------------------------

// For "spring" image, tooltip_direction is set to "right" in paramDef
cy.hoverOverActionImage("spring");
cy.verifyTip(null, "visible", "Spring", "right");
cy.hoverOverControl("weather-action-panel");


// Test: action image tooltip direction top
Expand All @@ -44,13 +46,15 @@ describe("Test of action image tooltip direction", function() {
// For "summer" image, tooltip_direction is set to "top" in paramDef
cy.hoverOverActionImage("summer");
cy.verifyTip(null, "visible", "Summer", "top");
cy.hoverOverControl("weather-action-panel");

// Test: action image tooltip direction bottom
// -------------------------------------------

// For "winter" image, tooltip_direction is set to "bottom" in paramDef
cy.hoverOverActionImage("winter");
cy.verifyTip(null, "visible", "Winter", "bottom");
cy.hoverOverControl("weather-action-panel");

// Test: "When tooltip_direction is not specified, default direction is bottom
// ---------------------------------------------------------------------------
Expand Down

0 comments on commit 2b05e92

Please sign in to comment.