wdio-safaridriver-service
Version:
WebdriverIO service to start & stop Safaridriver
15 lines (12 loc) • 504 B
text/typescript
describe('My Login application', () => {
it('should login with valid credentials', async () => {
await browser.url('https://the-internet.herokuapp.com/login')
await $('#username').setValue('tomsmith')
await $('#password').setValue('SuperSecretPassword!')
await $('button[type="submit"]').click()
await expect($('#flash')).toBeExisting()
await expect($('#flash')).toHaveTextContaining(
'You logged into a secure area!'
)
})
})