Skip to content

Commit

Permalink
made some modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
Bahati308 committed Jan 23, 2025
1 parent 5ec6ad4 commit bffed42
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
3 changes: 1 addition & 2 deletions frontend/cypress.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
const { defineConfig } = require("cypress");

module.exports = defineConfig({
//increased the timeout from 8000 to 80000
defaultCommandTimeout: 80000,
defaultCommandTimeout: 8000,
viewportWidth: 1200,
viewportHeight: 700,
video: false,
Expand Down
2 changes: 1 addition & 1 deletion frontend/cypress/e2e/dashboard.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe("Pathology Dashboard", function () {
dashboard.checkFilters();
cy.fixture("Order").then((dashBData) => {
dashboard.selectCases(dashBData.myCases);
dashboard.enterLabNumber(dashBData.labNo);
dashboard.enterLabNumber(dashBData.labNum);
dashboard.pageItems(dashBData.itemsPerPage);
});
});
Expand Down
14 changes: 13 additions & 1 deletion frontend/cypress/fixtures/Order.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
{
"labNo": "REG-00000123",
"samples": [
{
"sampleType": "Serum"
}
],
"siteName": "279 - CAMES MAN",
"requester": {
"firstName": "Optimus",
"lastName": "Prime"
},
"labNo": "",
"invalidLabNo": "DEV0124000000000000",
"labNumb": "REG-00000123",
"myCases": "Grossing",
"myCases2": "Completed",
"myCases3": "Screening",
Expand Down
4 changes: 2 additions & 2 deletions frontend/cypress/pages/DashBoard.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class DashBoardPage {
selectScreeningCases(myCases3) {
cy.get("#statusFilter").select(myCases3);
}
enterLabNumber(labNo) {
cy.get("#search-input-41").should("be.visible").type(labNo);
enterLabNumber(labNum) {
cy.get("#search-input-41").should("be.visible").type(labNum);
}

pageItems(itemsPerPage) {
Expand Down

0 comments on commit bffed42

Please sign in to comment.