Open Pawanesh1 opened 4 years ago
I would need some context to see where the error is coming from and what your actual test code looks like. Currently, cy.checkA11y()
accepts 4 arguments, with skipFailures
being the last. If you want to provide some code and more information about where you see that error, maybe we can get that sorted out.
https://github.com/avanslaars/cypress-axe/blob/master/src/index.js#L17-L21
@avanslaars The problem starts with initial setup I suppose. My cy.injectAxe() and cy.checka11y() commands are not recognized. Here is what I did
@Pawanesh1.. see that @types file is having latest version "@types/cypress-axe": "^0.8.0" and cypress-axe: "^0.8.1"
Do you still have this problem?
I need to disables assertions based on violations and only logs violations to a report, so was trying to pass 4 arguments to cy.checka11y() as described by @avanslaars , but got an error
0-2 arguments expected, got 4
package.json "devDependencies": { "@type/cypress-axe":"0.4.0" "cypress-axe": "^0.8.1" }
https://github.com/avanslaars/cypress-axe