@processmaker/cypress-utils
Advanced tools
Comparing version 1.0.294 to 1.0.295
{ | ||
"name": "@processmaker/cypress-utils", | ||
"version": "1.0.294", | ||
"version": "1.0.295", | ||
"description": "ProcessMaker Cypress Testing Utilities", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -46,2 +46,24 @@ import selectors from "#selectors/fileManager" | ||
/** | ||
* | ||
* @param {*} row nro row in order to open the floating menu | ||
* @param {*} val posible values= Open, Download | ||
*/ | ||
pressTooltip(row = 0, val) { | ||
let btn; | ||
switch(val){ | ||
case "Open": | ||
btn = "file-open"; | ||
break; | ||
case "Download": | ||
btn = "file-download"; | ||
break; | ||
default: | ||
btn = "file-preview"; | ||
} | ||
cy.get('[class="floating-menu"]').eq(row).invoke("show").within(() => { | ||
cy.get('button[id*="' + btn + '-"]').should("be.visible").click({force:true}); | ||
}); | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1888078
34214