Lines 47-52
const getVendor = () => {
Link Here
|
47 |
list_includes_gst: false, |
47 |
list_includes_gst: false, |
48 |
name: "My Vendor", |
48 |
name: "My Vendor", |
49 |
notes: "Sample vendor", |
49 |
notes: "Sample vendor", |
|
|
50 |
payment_method: "card", |
50 |
phone: "555-555-5555", |
51 |
phone: "555-555-5555", |
51 |
postal: "567 Main St. PO Box 25 Springfield, MA 44224", |
52 |
postal: "567 Main St. PO Box 25 Springfield, MA 44224", |
52 |
subscriptions: [], |
53 |
subscriptions: [], |
Lines 131-136
describe("Vendor CRUD operations", () => {
Link Here
|
131 |
force: true, |
132 |
force: true, |
132 |
} |
133 |
} |
133 |
); |
134 |
); |
|
|
135 |
cy.get("#payment_method .vs__search").type( |
136 |
vendor.payment_method + "{enter}", |
137 |
{ |
138 |
force: true, |
139 |
} |
140 |
); |
134 |
cy.get("#gst_yes").check(); |
141 |
cy.get("#gst_yes").check(); |
135 |
cy.get("#tax_rate .vs__search").type( |
142 |
cy.get("#tax_rate .vs__search").type( |
136 |
`${(vendor.tax_rate * 100).toFixed(2)}` + "{enter}", |
143 |
`${(vendor.tax_rate * 100).toFixed(2)}` + "{enter}", |
137 |
- |
|
|