Skip to content

Commit a0f1216

Browse files
ngodugu-marklogicMarkLogic Builder
authored andcommitted
Fix the E2E scripts that are failing in DHS
1 parent 5450205 commit a0f1216

File tree

4 files changed

+33
-17
lines changed

4 files changed

+33
-17
lines changed

marklogic-data-hub-central/ui/e2e/cypress/integration/curation/load/defaultIngestionCardView.spec.tsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,15 @@ describe("Validate CRUD functionality from card view and run in a flow", () => {
101101
runPage.setFlowDescription(`${flowName} description`);
102102
loadPage.confirmationOptions("Save").click();
103103
cy.verifyStepAddedToFlow("Load", stepName);
104+
});
105+
it("Delete the step and Navigate back to load step", () => {
104106
runPage.deleteStep(stepName).click();
105107
loadPage.confirmationOptions("Yes").click();
106-
});
107-
it("Verify Run Load step in an Existing Flow", () => {
108+
cy.waitForAsyncRequest();
108109
cy.waitUntil(() => toolbar.getLoadToolbarIcon()).click();
109110
cy.waitUntil(() => loadPage.addNewButton("card").should("be.visible"));
111+
});
112+
it("Verify Run Load step in an Existing Flow", () => {
110113
loadPage.runStep(stepName).click();
111114
loadPage.runStepSelectFlowConfirmation().should("be.visible");
112115
loadPage.selectFlowToRunIn(flowName);
@@ -179,12 +182,15 @@ describe("Validate CRUD functionality from card view and run in a flow", () => {
179182
cy.uploadFile("input/test-1.json");
180183
cy.verifyStepRunResult("success", "Ingestion", stepName);
181184
tiles.closeRunMessage();
185+
});
186+
it("Delete the step and Navigate back to load step", () => {
182187
runPage.deleteStep(stepName).click();
183188
loadPage.confirmationOptions("Yes").click();
184-
});
185-
it("Verify Add to Existing Flow after changing source/target format to TEXT", () => {
189+
cy.waitForAsyncRequest();
186190
cy.waitUntil(() => toolbar.getLoadToolbarIcon()).click();
187191
cy.waitUntil(() => loadPage.addNewButton("card").should("be.visible"));
192+
});
193+
it("Verify Add to Existing Flow after changing source/target format to TEXT", () => {
188194
loadPage.loadView("th-large").click();
189195
loadPage.editStepInCardView(stepName).click();
190196
loadPage.selectSourceFormat("TEXT");

marklogic-data-hub-central/ui/e2e/cypress/integration/curation/load/defaultIngestionListView.spec.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,15 @@ describe("Validate CRUD functionality from list view", () => {
128128
runPage.setFlowDescription(`${flowName} description`);
129129
loadPage.confirmationOptions("Save").click();
130130
cy.verifyStepAddedToFlow("Load", stepName);
131+
});
132+
it("Delete the step and Navigate back to load step", () => {
131133
runPage.deleteStep(stepName).click();
132134
loadPage.confirmationOptions("Yes").click();
135+
cy.waitForAsyncRequest();
136+
cy.waitUntil(() => toolbar.getLoadToolbarIcon()).click();
137+
cy.waitUntil(() => loadPage.addNewButton("card").should("be.visible"));
133138
});
134139
it("Verify Run in an existing flow", () => {
135-
cy.waitUntil(() => toolbar.getLoadToolbarIcon()).click();
136140
loadPage.loadView("table").click();
137141
loadPage.runStep(stepName).click();
138142
loadPage.runStepSelectFlowConfirmation().should("be.visible");

marklogic-data-hub-central/ui/e2e/cypress/integration/explore/crudQueriesfromExplore.spec.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,7 @@ describe("save/manage queries scenarios, developer role", () => {
404404
//verifying the confirmation modal displays if no query selected and selected columns changed
405405
browsePage.selectEntity("Customer");
406406
browsePage.getSelectedEntity().should("contain", "Customer");
407+
browsePage.getColumnSelectorIcon().should("be.visible");
407408
browsePage.getColumnSelectorIcon().click();
408409
browsePage.getColumnSelector().should("be.visible");
409410
browsePage.selectColumnSelectorProperty("status");
@@ -417,6 +418,7 @@ describe("save/manage queries scenarios, developer role", () => {
417418
browsePage.getSaveQueriesDropdown().should("be.visible");
418419
browsePage.selectQuery("reset-query");
419420
//changing the selecte column list should trigger modal confirmation
421+
browsePage.getColumnSelectorIcon().should("be.visible");
420422
browsePage.getColumnSelectorIcon().click();
421423
browsePage.getColumnSelector().should("be.visible");
422424
browsePage.selectColumnSelectorProperty("status");

marklogic-data-hub-central/ui/e2e/cypress/integration/explore/verifyDataInDatabases.spec.tsx

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ describe("Verify All Data for final/staging databases and non-entity detail page
3636
browsePage.getAllDataSnippetByUri("/json/customers/Cust2.json").should("contain", "ColeAdams");
3737
});
3838
it("Select query parameters for final database", () => {
39+
browsePage.clearSearchText();
40+
browsePage.waitForSpinnerToDisappear();
3941
browsePage.search("Barbi");
4042
browsePage.waitForSpinnerToDisappear();
4143
cy.waitForAsyncRequest();
@@ -154,19 +156,21 @@ describe("Verify All Data for final/staging databases and non-entity detail page
154156
//Verify if the pagination gets reset upon cliking on database buttons
155157
browsePage.clearSearchText();
156158
browsePage.selectEntity("All Entities");
157-
browsePage.getPaginationPageSizeOptions().then(attr => {
158-
attr[0].click();
159+
browsePage.getTotalDocuments().then(val => {
160+
browsePage.getPaginationPageSizeOptions().then(attr => {
161+
attr[0].click();
162+
});
163+
browsePage.getPageSizeOption("10 / page").click();
164+
browsePage.waitForSpinnerToDisappear();
165+
browsePage.clickPaginationItem(4);
166+
browsePage.waitForSpinnerToDisappear();
167+
browsePage.getStagingDatabaseButton().click();
168+
browsePage.waitForSpinnerToDisappear();
169+
browsePage.getFinalDatabaseButton().click();
170+
browsePage.waitForSpinnerToDisappear();
171+
cy.contains("Showing 1-20 of "+val+" results", {timeout: 5000});
172+
browsePage.getTotalDocuments().should("be.equal", val);
159173
});
160-
browsePage.getPageSizeOption("10 / page").click();
161-
browsePage.waitForSpinnerToDisappear();
162-
browsePage.clickPaginationItem(4);
163-
browsePage.waitForSpinnerToDisappear();
164-
browsePage.getStagingDatabaseButton().click();
165-
browsePage.waitForSpinnerToDisappear();
166-
browsePage.getFinalDatabaseButton().click();
167-
browsePage.waitForSpinnerToDisappear();
168-
cy.contains("Showing 1-20 of 36 results", {timeout: 5000});
169-
browsePage.getTotalDocuments().should("be.equal", 36);
170174
});
171175
it("Switch to staging database and verify the number of documents for the search string is 0", () => {
172176
browsePage.getStagingDatabaseButton().click();

0 commit comments

Comments
 (0)