Skip to content
Discussion options

You must be logged in to vote

You can check the element text contains text-transform by using contains with the option matchCase: falseto find the element and assert it hastext-transform: uppercase` css.

cy.contains('h1', 'text', { matchCase: false }).should(
  'have.css',
  'text-transform',
  'uppercase'
)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jonmhayden
Comment options

Answer selected by jonmhayden
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants