I have a few text fields which when I login as a specific user (rights of a read only) , all the text fields are not allowed to be edited. I am trying to automate this page in Cypress.
I tried using :
cy.get(element).should("be.disabled") cy.get(element).should("have.text", readonly,readonly).
Please let me know if anyone has any other options.