Powered by
I'd recommend adding a test-id to the element. Fai...
# help
f
fresh-doctor-14925
06/22/2022, 4:17 PM
I'd recommend adding a test-id to the element. Failing that you could do
cy.get("p").contains("Logout")
Or, more concise, but less readable IMO
cy.contains("p", "Logout")
Previous
Next