https://cypress.io logo
I'd recommend adding a test-id to the element. Fai...
# help
f
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")