Created
October 29, 2020 15:48
-
-
Save cmosguy/c44ccfdcbebf6b540da23b8b83d85d80 to your computer and use it in GitHub Desktop.
Example code for the blog post https://thinkcru.com/end-to-end-testing-with-selenium-and-cypress-io/
This file contains hidden or 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
context('Currency Converter Test', () => { | |
it('', () => { | |
cy.visit('https://www.xe.com/') | |
cy.get('#amount').type(100) | |
cy.get('button[data-test-id=converter-submit-button]').click() | |
cy.get('.converterresult-toAmount').invoke('text').then(parseFloat).should('be.gt', 84) | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment