Skip to content

Commit

Permalink
Merge pull request #1228 from manishjha-04/minorfixbatch
Browse files Browse the repository at this point in the history
Minor Fix
  • Loading branch information
mozzy11 authored Aug 12, 2024
2 parents ee11f14 + a75253a commit c689667
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions frontend/cypress/e2e/batchOrderEntry.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,15 @@ describe("Batch Order Entry On Demand", function () {

it("Should Validate Fields And Generate BarCode", function () {
cy.fixture("BatchOrder").then((batchOrderData) => {
batchOrder.validateField("#tag-54", batchOrderData.sampleType);
batchOrder.validateField("#tag-56", batchOrderData.panel);
batchOrder.validateField("#tag-58", batchOrderData.facility);
batchOrder.validateField(
":nth-child(1) > .cds--subgrid > :nth-child(8)",
batchOrderData.sampleType,
);
batchOrder.validateField(".cds--lg\\:col-span-12", batchOrderData.panel);
batchOrder.validateField(
":nth-child(1) > .cds--subgrid > :nth-child(13)",
batchOrderData.facility,
);
batchOrder.checkNextLabel().should("be.disabled");
batchOrder.clickGenerateAndSaveBarcode();
batchOrder.checkNextLabel().should("be.visible");
Expand Down Expand Up @@ -95,9 +101,15 @@ describe("Batch Order Entry Pre Printed", function () {

it("Should Validate Fields", function () {
cy.fixture("BatchOrder").then((batchOrderData) => {
batchOrder.validateField("#tag-58", batchOrderData.sampleType);
batchOrder.validateField("#tag-60", batchOrderData.panel);
batchOrder.validateField("#tag-62", batchOrderData.facility);
batchOrder.validateField(
":nth-child(1) > .cds--subgrid > :nth-child(8)",
batchOrderData.sampleType,
);
batchOrder.validateField(".cds--lg\\:col-span-12", batchOrderData.panel);
batchOrder.validateField(
":nth-child(1) > .cds--subgrid > :nth-child(13)",
batchOrderData.facility,
);
});
});

Expand Down

0 comments on commit c689667

Please sign in to comment.