adjust property names in carrier template
This commit is contained in:
parent
a739479e22
commit
cce5e296c6
2 changed files with 4 additions and 4 deletions
|
|
@ -2,7 +2,7 @@ describe('freight carriers', () => {
|
|||
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=company_name]').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')
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
<form action="/create_carrier" method="POST">
|
||||
<input type="hidden" name="csrf_name" value="{{ csrf.name }}">
|
||||
<input type="hidden" name="csrf_value" value="{{ csrf.value }}">
|
||||
<input name="companyName" type="text"/>
|
||||
<input name="company_name" type="text"/>
|
||||
<input name="contact_person" type="text"/>
|
||||
<input name="email" type="email"/>
|
||||
<input name="phone_number" type="text"/>
|
||||
|
|
@ -31,9 +31,9 @@
|
|||
<tr>
|
||||
<td>{{ c.id }}</td>
|
||||
<td>{{ c.companyName }}</td>
|
||||
<td>{{ c.contact_person }}</td>
|
||||
<td>{{ c.contactPerson }}</td>
|
||||
<td>{{ c.email }}</td>
|
||||
<td>{{ c.phone_number }}</td>
|
||||
<td>{{ c.phoneNumber }}</td>
|
||||
<td>{{ c.notes }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue