Skip to content

Commit

Permalink
Fix HG Dependent failures for AB#16865 (#6372)
Browse files Browse the repository at this point in the history
* Ensure buttons are visible before clicking for AB#16865.

* Ensure buttons are visible before clicking for AB#16865.

* Removed unused variables in tests for AB#16865.

* Adjust parallelism for functional tests for AB#16865.

* Adjust parallelism for functional tests for AB#16865.
  • Loading branch information
BrianMaki authored Nov 21, 2024
1 parent db6838c commit e0bf024
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ const dependentWithAudit = "9872868128"; // Leroy Desmond Tobias
const dependentWithoutGuardian = { phn: "9874307168" };
const dependentWithGuardian = { phn: "9874307175", guardianPhn: "9735353315" };
const dependentExceedingAgeCutoff = { phn: "9735353315" };
const dependentToProtect = "9872868095"; // Jeffrey Lawrence Stallings
const guardianToAdd = "9735352488"; // Turpentine Garlandry
const guardianNotFound = "9735352489";
const guardianAlreadyAdded = "9735353315"; // BONNET PROTERVITY
const defaultTimeout = 60000;

function performSearch(phn) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
const dependentWithAudit = "9872868128"; // Leroy Desmond Tobias
const dependentWithoutGuardian = { phn: "9874307168" };
const dependentWithGuardian = { phn: "9874307175", guardianPhn: "9735353315" };
const dependentExceedingAgeCutoff = { phn: "9735353315" };
const dependentToProtect = "9872868095"; // Jeffrey Lawrence Stallings
const guardianToAdd = "9735352488"; // Turpentine Garlandry
const guardianNotFound = "9735352489";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const suggestionTag = "suggestion";
const questionTag = "question";
const defaultTimeout = 60000;
const rowSelector = "[data-testid=feedback-table] tbody tr.mud-table-row";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { performSearch as search } from "../../utilities/supportUtilities";
import { getTableRows, selectTab } from "../../utilities/sharedUtilities";

const hdid = "P6FFO433A5WPMVTGM7T4ZVWBKCSVNAYGTWTU3J2LWMGUMERKI72A";
const phnWithInvalidDoses = "9735352535";
const switchName = "Immunization";
const auditBlockReason = "Test block reason";
const auditUnblockReason = "Test unblock reason";
Expand Down
46 changes: 33 additions & 13 deletions Testing/functional/tests/cypress/integration/e2e/user/dependents.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,12 +351,16 @@ describe("dependents", () => {
// Click download dropdown under History tab
cy.get(
`[data-testid=download-immunization-history-report-btn-${validDependentHdid}]`
).click();
)
.should("be.visible", "be.enabled")
.click();

// Click PDF
cy.get(
`[data-testid=download-immunization-history-report-pdf-btn-${validDependentHdid}]`
).click();
)
.should("be.visible", "be.enabled")
.click();

// Confirmation modal
cy.get("[data-testid=generic-message-modal]").should("be.visible");
Expand All @@ -370,12 +374,16 @@ describe("dependents", () => {
// Click download dropdown under History tab
cy.get(
`[data-testid=download-immunization-history-report-btn-${validDependentHdid}]`
).click();
)
.should("be.visible", "be.enabled")
.click();

// Click CSV
cy.get(
`[data-testid=download-immunization-history-report-csv-btn-${validDependentHdid}]`
).click();
)
.should("be.visible", "be.enabled")
.click();

// Confirmation modal
cy.get("[data-testid=generic-message-modal]").should("be.visible");
Expand All @@ -389,12 +397,16 @@ describe("dependents", () => {
// Click download dropdown under History tab
cy.get(
`[data-testid=download-immunization-history-report-btn-${validDependentHdid}]`
).click();
)
.should("be.visible", "be.enabled")
.click();

// Click XLSX
cy.get(
`[data-testid=download-immunization-history-report-xlsx-btn-${validDependentHdid}]`
).click();
)
.should("be.visible", "be.enabled")
.click();

// Confirmation modal
cy.get("[data-testid=generic-message-modal]").should("be.visible");
Expand Down Expand Up @@ -435,12 +447,16 @@ describe("dependents", () => {
// Click download dropdown under Forecasts tab
cy.get(
`[data-testid=download-immunization-forecast-report-btn-${validDependentHdid}]`
).click({ force: true });
)
.should("be.visible", "be.enabled")
.click();

// Click PDF
cy.get(
`[data-testid=download-immunization-forecast-report-pdf-btn-${validDependentHdid}]`
).click({ force: true });
)
.should("be.visible", "be.enabled")
.click({ force: true });

// Confirmation modal
cy.get("[data-testid=generic-message-modal]").should("be.visible");
Expand All @@ -455,13 +471,15 @@ describe("dependents", () => {
cy.get(
`[data-testid=download-immunization-forecast-report-btn-${validDependentHdid}`
)
.should("be.enabled")
.click({ force: true });
.should("be.visible", "be.enabled")
.click();

// Click CSV
cy.get(
`[data-testid=download-immunization-forecast-report-csv-btn-${validDependentHdid}]`
).click({ force: true });
)
.should("be.visible")
.click({ force: true });

// Confirmation modal
cy.get("[data-testid=generic-message-modal]").should("be.visible");
Expand All @@ -476,13 +494,15 @@ describe("dependents", () => {
cy.get(
`[data-testid=download-immunization-forecast-report-btn-${validDependentHdid}]`
)
.should("be.enabled")
.should("be.visible", "be.enabled")
.click({ force: true });

// Click XLSX
cy.get(
`[data-testid=download-immunization-forecast-report-xlsx-btn-${validDependentHdid}]`
).click({ force: true });
)
.should("be.visible")
.click({ force: true });

// Confirmation modal
cy.get("[data-testid=generic-message-modal]").should("be.visible");
Expand Down
4 changes: 2 additions & 2 deletions Tools/Pipelines/pipelines/FunctionalTests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
- "Admin_Seed"
- "Admin_Authentication_Tests"
strategy:
parallel: 5
parallel: 3
timeoutInMinutes: 15
steps:
- task: Bash@3
Expand All @@ -120,7 +120,7 @@ jobs:
- "Admin_Seed"
- "Admin_Read_Tests"
strategy:
parallel: 5
parallel: 3
timeoutInMinutes: 15
steps:
- task: Bash@3
Expand Down

0 comments on commit e0bf024

Please sign in to comment.