title: How to validate a error message in cypress?
body: <p>Am new to cypress and been trying to validate an error message that appears on UI after clicking on a button</p>
  <p>I've tried the following 3 but neither of them worked</p>
  <pre><code>cy.get('pvd-system-message').should('have.text', 'SSN 123456789 not found ')
  
  cy.contains('SSN 123456789 not found').should('be.visible')  
  
  cy.contains('pvd-system-message', 'SSN 123456789 not found ')
  </code></pre>
  <p>Any help would be really appreciated, thank you!</p>
  <p>Please check the screenshot here
  <a href="https://i.stack.imgur.com/Ph6Hs.png" rel="nofollow noreferrer">Screenshot of UI and elements</a></p>
  <p><a href="https://i.stack.imgur.com/Ph6Hs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ph6Hs.png" alt="enter image description here" /></a></p>