Skip to content

Instantly share code, notes, and snippets.

@cmosguy
Created October 27, 2020 20:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmosguy/30e2ec12217c84f0f0fb717e5f122269 to your computer and use it in GitHub Desktop.
Save cmosguy/30e2ec12217c84f0f0fb717e5f122269 to your computer and use it in GitHub Desktop.
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