add test for no carriers to display
This commit is contained in:
parent
0400282b03
commit
2e7d67adde
2 changed files with 8 additions and 3 deletions
|
|
@ -1,8 +1,6 @@
|
|||
describe('freight carriers', () => {
|
||||
beforeEach(() => {
|
||||
cy.exec('npm run db:seed')
|
||||
})
|
||||
it('creates freight carrier', () => {
|
||||
cy.exec('npm run db:seed')
|
||||
cy.visit('/freight_carriers')
|
||||
cy.get('input[name=companyName]').type('test company')
|
||||
cy.get('input[name=contact_person]').type('Joe Shmoe')
|
||||
|
|
@ -12,4 +10,9 @@ describe('freight carriers', () => {
|
|||
cy.url().should('include', '/freight_carriers')
|
||||
cy.get('table').contains('test company')
|
||||
})
|
||||
it('shows message if no carriers to display', () => {
|
||||
cy.exec('npm run db:wipe')
|
||||
cy.visit('/freight_carriers')
|
||||
cy.contains('No Carriers to Display')
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue