Skip to content

Commit

Permalink
Merge branch 'I-TECH-UW:develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Agaba-derrick authored Aug 12, 2024
2 parents 8409e91 + c689667 commit 27265a8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ jobs:
repository: ${{github.repository}}

- name: Run OpenELS image
run: docker-compose -f test.docker-compose.yml up -d
run: docker compose -f test.docker-compose.yml up -d

- name: Cypress run
uses: cypress-io/github-action@v6
Expand Down
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 27265a8

Please sign in to comment.