Open stereobooster opened 3 years ago
Is there a need for this:
Enable results logging by defining cy.tasks
Why it needs to be task
can't it just directly use console.log, console.table?
cy.checkA11y
but the loading/injection of axe-core has to happen before running the running the check function. violationsCallback
and control how results are logged. In that case you won't need to create those tasks. Take a look here https://github.com/mcha-dev/cypress-axe-core#cyconfigurecypressaxe
What do you think about removing explicit call of
injectAxe
and instead check if axe already injected incheckA11y
, if no then inject it, if yes then skip injecting?Also maybe read file once in the memory rather then reading it on each inject?