Cypress interview question Flashcards
1
Q
Why cypress has a problem reading selector with the backslash \ ? example .lg:mx-auto >
and how can you fix it ?
A
likely due to the fact that Cypress uses jQuery under the hood for DOM manipulation and querying. The backslash () character is used as an escape character in jQuery selectors to escape special characters.
by adding a backslash to the selector or removing it from the selector.
2
Q
Is the .contain comand case-sensitive ?
A
Yes
3
Q
A