How do I verify text-transform worked #22625
-
Hi, I've googled this, but haven't had any luck. Take this CSS: So if I had a header that was "test", it would display this: TEST How do I verify the text-transform worked? Here is what I did in Cypress:
I would expect the results would be opposite since I want to verify what is actually being displayed to the user. As a QA tester, I would want to make sure a developer didn't accidentally put in a typo to text-transform css. Is this possible or do I have to use some sort of image-based test tool? Thanks for the help, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can check the element text contains
|
Beta Was this translation helpful? Give feedback.
You can check the element text contains
text-transform by using contains with the option
matchCase: falseto find the element and assert it has
text-transform: uppercase` css.