tets carrier creation

This commit is contained in:
Yisroel Baum 2025-11-04 10:23:27 +02:00
parent 3e970173a3
commit 2ed0dc1ea6
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9

View 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')
})
})