Pragati Sharma: Let's go back and now the next thing that we need to do is to add accessibility on the top of it. So now for accessibility, I'll have to add certain dependencies. I'll be adding the dependency called Cypress Axe. So now this is a dependency that would allow the Cypress Node server to access the axe cps and then internally the Axe runner actually using another dependency called Axe core, so I'll have to install that as well. So it's axe core. Now, let's check if the dependencies have been added. So now we have axe core and cypress axe as well. Now, what we want to do is we need to use Cypress axe in the entire project. Now for something to be used in the entire project we need to use project wide hooks. And that goes under the portfolio. So in this portfolio, I'll simply do require what do I require is Cypress Axe. That's it. Now I'll go to my specification file and here I'll have to use 2 commands.
Comments are closed.