You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever I try to use cy.injectAxe() in a test, Cypress gets stuck at the step immediately prior. The Cypress test runner itself is locked and must be force-quit.
Here is code to reproduce the problem.
context('Problem with cy.injectAxe()', function () {
beforeEach (function () {
// These are not real credentials.
// Please sign up (for free) at www.vidyard.com, verify your email address, then update these accordingly before running.
const email = 'yourEmailAddress@fake.com'
const password = 'password123!'
cy.visit('https://secure.vidyard.com/user/sign_in')
cy.get('#username').type(email)
cy.get('#password').type(password)
cy.get('#sign-in').click()
cy.wait(10000) // Just to make sure the page is fully loaded.
})
it('Accessibility Test', function () {
// When the lines below are commented out, there is no issue.
// When the lines are let to run, the Cypress Test Runner gets stuck on the cy.wait step.
// Cypress will be completely frozen and must be force quit.
cy.injectAxe()
cy.checkA11y()
})
})
I am using Cypress version 4.12.1 and cypress-axe version 0.8.1 on macOS 10.14.6 with Chrome 84.0.4147.105 and Firefox 79.0.
The text was updated successfully, but these errors were encountered:
@todd-m-kemp I think I'm encountering this too. I found that it was only the combination of running both injectAxe and checkA11y functions for the same page that triggered the error. I could run either of them independently and there wasn't a problem.
Additionally, I am able to run everything just fine for most of my pages, except I added a new one (which happens to be the only one that is SSR'd by gatsby) and whatever conditions exist on that page cause this freeze to occur.
Whenever I try to use
cy.injectAxe()
in a test, Cypress gets stuck at the step immediately prior. The Cypress test runner itself is locked and must be force-quit.Here is code to reproduce the problem.
I am using Cypress version 4.12.1 and
cypress-axe
version 0.8.1 on macOS 10.14.6 with Chrome 84.0.4147.105 and Firefox 79.0.The text was updated successfully, but these errors were encountered: