Does Cypress sometimes break Angular change detection? #15147
Unanswered
diminutivesloop
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was writing a test using the
cy.realHover
command provided by cypress-real-events to verify that options in a menu component are highlighted when mousing over them. However when the tests failed I noticed that the option highlighting wasn't working even when I tried it manually in the test window. However when I open the test harness page (a Storybook iframe page in this case) the highlighting works as expected. The component is built with Angular and the highlighting is triggered via amouseover
event binding coupled with aclass
binding that applies a css class for highlighted options. From my testing it appears that themouseover
event is firing but theclass
binding isn't being updated. I'm probably just going to put this test aside since it's not critical but I'm curious if there's a known issue with Cypress interfering with Angular change detection.Beta Was this translation helpful? Give feedback.
All reactions