tets carrier creation
This commit is contained in:
parent
3e970173a3
commit
2ed0dc1ea6
1 changed files with 15 additions and 0 deletions
15
cypress/e2e/carriers.cy.js
Normal file
15
cypress/e2e/carriers.cy.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
describe('freight carriers', () => {
|
||||
beforeEach(() => {
|
||||
cy.exec('npm run db:seed')
|
||||
})
|
||||
it('creates freight carrier', () => {
|
||||
cy.visit('/freight_carriers')
|
||||
cy.get('input[name=company]').type('test company')
|
||||
cy.get('input[name=contact_person]').type('Joe Shmoe')
|
||||
cy.get('input[name=email]').type('joe@shmoe.com')
|
||||
cy.get('input[name=phone_number]').type('123456789')
|
||||
cy.get('input[name=notes]').type('some notes{enter}')
|
||||
cy.url().should('include', '/freight_carriers')
|
||||
cy.get('table').contains('test company')
|
||||
})
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue