test freight orders

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

View file

@ -0,0 +1,14 @@
describe('freight orders', () => {
beforeEach(() => {
cy.exec('npm run db:seed')
})
it('creates freight order', () => {
cy.visit('/freight_orders')
cy.get('input[name=ship_from_location]').type('new york')
cy.get('input[name=ship_to_location]').type('pennsylvania')
cy.get('input[name=pickup_date]').type('2026-01-01')
cy.get('input[name=delivery_deadline]').type('2026-01-25{enter}')
cy.url().should('include', '/freight_orders')
cy.contains('new york')
})
})