test successful login
This commit is contained in:
parent
aeae0d09cd
commit
5107210098
1 changed files with 11 additions and 5 deletions
|
|
@ -1,5 +1,11 @@
|
||||||
describe('template spec', () => {
|
describe('user login', () => {
|
||||||
it('passes', () => {
|
it('logs in', () => {
|
||||||
cy.visit('https://example.cypress.io')
|
cy.exec('npm run db:seed')
|
||||||
|
cy.visit('/')
|
||||||
|
cy.get('a').click()
|
||||||
|
cy.url().should('include', '/login')
|
||||||
|
cy.get('input[name=email]').type('test@test.com')
|
||||||
|
cy.get('input[name=password]').type('password{enter}')
|
||||||
|
cy.url().should('include', '/dashboard')
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
Loading…
Add table
Add a link
Reference in a new issue