Skip to content

Commit c5c7d21

Browse files
lucianabc-endavaMarkLogic Builder
authored andcommitted
DHFPROD-9593: Add Flow Menu Select/Deselect e2e
DHFPROD-9593: Add Flow Menu Select/Deselect e2e
1 parent 9e0d227 commit c5c7d21

File tree

2 files changed

+37
-2
lines changed

2 files changed

+37
-2
lines changed

marklogic-data-hub-central/ui/e2e/cypress/integration/curation/run/runFlow.spec.tsx

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,39 @@ describe("Run Tile tests", () => {
6161
runPage.verifyStepInFlow("Mastering", "master-person", flowName);
6262
runPage.addStep(flowName);
6363
runPage.addStepToFlow("generate-dictionary");
64+
65+
cy.log("**Verify all steps are selected (just one Load step selected)**");
66+
runPage.openStepsSelectDropdown("testPersonXML");
67+
runPage.controlCheckedStep("#loadPersonXML");
68+
runPage.controlCheckedStep("#mapPersonXML");
69+
runPage.controlCheckedStep("#match-xml-person");
70+
runPage.controlCheckedStep("#merge-xml-person");
71+
runPage.controlCheckedStep("#master-person");
72+
runPage.controlCheckedStep("#generate-dictionary");
73+
runPage.controlUncheckedStep("#ingest-orders");
74+
75+
cy.log("**Deselect all**");
76+
runPage.getSelectAll().parent().should("have.text", "Deselect All");
77+
runPage.getSelectAll().click();
78+
runPage.controlUncheckedStep("#loadPersonXML");
79+
runPage.controlUncheckedStep("#mapPersonXML");
80+
runPage.controlUncheckedStep("#match-xml-person");
81+
runPage.controlUncheckedStep("#merge-xml-person");
82+
runPage.controlUncheckedStep("#master-person");
83+
runPage.controlUncheckedStep("#generate-dictionary");
84+
runPage.controlUncheckedStep("#ingest-orders");
85+
86+
cy.log("**Select all (just one Load step should be selected)**");
87+
runPage.getSelectAll().parent().should("have.text", "Select All");
88+
runPage.getSelectAll().click();
89+
runPage.controlCheckedStep("#loadPersonXML");
90+
runPage.controlCheckedStep("#mapPersonXML");
91+
runPage.controlCheckedStep("#match-xml-person");
92+
runPage.controlCheckedStep("#merge-xml-person");
93+
runPage.controlCheckedStep("#master-person");
94+
runPage.controlCheckedStep("#generate-dictionary");
95+
runPage.controlUncheckedStep("#ingest-orders");
96+
6497
//Verify scrolling, last step should still be visible in the flow panel
6598
runPage.verifyStepInFlow("Custom", "generate-dictionary", flowName);
6699
//confirm the first load step is no longer visible because panel scrolled to the end
@@ -71,8 +104,6 @@ describe("Run Tile tests", () => {
71104

72105
it("Verify selected steps in run flow dropdown are executed successfully ", {defaultCommandTimeout: 120000}, () => {
73106
cy.log("**Verify selected steps executed successfully**");
74-
runPage.openStepsSelectDropdown(flowName);
75-
76107
cy.log("**Unclick All Steps**");
77108
// cy.get("#checkAll").click();
78109

marklogic-data-hub-central/ui/e2e/cypress/support/pages/run.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,10 @@ class RunPage {
216216
getSpinner() {
217217
return cy.get("[data-testid='spinner']");
218218
}
219+
220+
getSelectAll() {
221+
return cy.get("[data-testid='select-all-toggle']");
222+
}
219223
}
220224

221225
const runPage = new RunPage();

0 commit comments

Comments
 (0)