example.e2e.ts 496 B

1234567891011121314
  1. describe('My Login application', () => {
  2. it('should login with valid credentials', async () => {
  3. await browser.url(`https://the-internet.herokuapp.com/login`)
  4. await $('#username').setValue('tomsmith')
  5. await $('#password').setValue('SuperSecretPassword!')
  6. await $('button[type="submit"]').click()
  7. await expect($('#flash')).toBeExisting()
  8. await expect($('#flash')).toHaveTextContaining(
  9. 'You logged into a secure area!')
  10. })
  11. })