cy.get("#header > div > div > div:nth-child(2) > div > div.headButtons > div.header_button_float.logMenu > div > a.underLine") | |
// assert that the element's text matches a reg ex | |
.should(($txt) => { | |
const text = $txt.text() | |
expect(text).to.match(/Login/) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment