-
-
Save trivial-search/7f4affc12bc984161e826dd1c02ee435 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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