mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
15 lines
496 B
TypeScript
15 lines
496 B
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!')
|
||
|
})
|
||
|
})
|
||
|
|