diff --git a/client/cypress/e2e/posting-bills/posting-bills.cy.js b/client/cypress/e2e/posting-bills/posting-bills.cy.js index 4e3538604..a85188fc1 100644 --- a/client/cypress/e2e/posting-bills/posting-bills.cy.js +++ b/client/cypress/e2e/posting-bills/posting-bills.cy.js @@ -188,7 +188,7 @@ describe.only( .contains("Backordered"); }); - it.only("order parts inhouse", () => { + it("order parts inhouse", () => { cy.get('[data-cy="tab-repairdata"]').should("be.visible").click(); // Click on filter parts only cy.get('[data-cy="filter-parts-button"]') @@ -225,6 +225,25 @@ describe.only( .contains("Received"); }); + it("check inhouse bill to have extra actions", () => { + cy.get('[data-cy="tab-partssublet"]').should("be.visible").click(); + + cy.get('[data-cy="bills-table"]') + .find(".ant-table-tbody") + .find("> tr:not(.ant-table-measure-row)") + .as("bills-table") + .should("not.have.class", "ant-table-placeholder"); + + cy.get("@bills-table") + .contains("$0.00") + .parent() + .parent() + .first() + .find('[data-cy="print-wrapper"]') + .should("exist"); + }); + + // select no in job estimate it("posts bill directly", () => { cy.get('[data-cy="tab-partssublet"]').should("be.visible").click(); @@ -237,7 +256,9 @@ describe.only( // Select Vendor cy.antdSelect("bill-vendor"); // Select Line - cy.antdSelect("bill-line", "-- Not On Estimate --"); + cy.antdSelect("bill-line"); + + cy.get('[data-cy="bill-line-line-desc"]').type("Line Description"); // Fill the Form cy.get('[data-cy="bill-form-invoice"]').type(uuid()); diff --git a/client/src/components/bill-form/bill-form.lines.component.jsx b/client/src/components/bill-form/bill-form.lines.component.jsx index 890dd1bef..df5dfc76b 100644 --- a/client/src/components/bill-form/bill-form.lines.component.jsx +++ b/client/src/components/bill-form/bill-form.lines.component.jsx @@ -134,7 +134,9 @@ export function BillEnterModalLinesComponent({ ], }; }, - formInput: (record, index) => , + formInput: (record, index) => ( + + ), }, { title: t("billlines.fields.quantity"), diff --git a/client/src/components/print-wrapper/print-wrapper.component.jsx b/client/src/components/print-wrapper/print-wrapper.component.jsx index 6d5c3438b..b9ed36dba 100644 --- a/client/src/components/print-wrapper/print-wrapper.component.jsx +++ b/client/src/components/print-wrapper/print-wrapper.component.jsx @@ -18,7 +18,7 @@ export default function PrintWrapperComponent({ }; return ( - + {children || null} {!emailOnly && handlePrint("p")} />} handlePrint("e")} />