Skip to content

Commit 21ac8b2

Browse files
AkshayBajajMLMarkLogic Builder
authored andcommitted
DHFPROD-7876: Default views for first-time user experience
1 parent 8c699af commit 21ac8b2

File tree

19 files changed

+135
-58
lines changed

19 files changed

+135
-58
lines changed

marklogic-data-hub-central/ui/e2e/cypress/integration/curation/curate/mappingWithCustomHeader.spec.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,8 @@ describe("Create and verify load steps, map step and flows with a custom header"
225225
cy.waitUntil(() => runPage.getFlowName(flowName).should("be.visible"));
226226
cy.verifyStepRunResult("success", "Mapping", mapStep);
227227
runPage.explorerLink().click();
228+
browsePage.getTableView().click();
229+
browsePage.waitForSpinnerToDisappear();
228230
browsePage.getFirstTableViewInstanceIcon().should("be.visible").click({force: true});
229231
detailPage.getDocumentSource().should("contain", "backup-ABC123");
230232
detailPage.getDocumentTimestamp().should("not.exist");

marklogic-data-hub-central/ui/e2e/cypress/integration/curation/curate/relatedEntityMapping.spec.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ describe("Mapping", () => {
162162
runPage.newFlowModal().should("be.visible");
163163
runPage.setFlowName("relationFlow");
164164
loadPage.confirmationOptions("Save").click();
165+
cy.wait(1000);
165166
runPage.addStep("relationFlow");
166167
runPage.addStepToFlow("mapRelation");
167168
runPage.verifyStepInFlow("Map", "mapRelation", "relationFlow");
@@ -172,6 +173,7 @@ describe("Mapping", () => {
172173

173174
// Navigate to Explore
174175
runPage.explorerLink().click();
176+
browsePage.getTableView().click();
175177
browsePage.waitForSpinnerToDisappear();
176178
cy.waitForAsyncRequest();
177179
browsePage.waitForHCTableToLoad();

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ describe("Run Tile tests", () => {
115115
runPage.explorerLink().click();
116116
browsePage.waitForSpinnerToDisappear();
117117
cy.waitForAsyncRequest();
118+
browsePage.getTableView().click();
118119
browsePage.waitForHCTableToLoad();
119120

120121
cy.wait(3000);
@@ -147,6 +148,7 @@ describe("Run Tile tests", () => {
147148
runPage.explorerLink().click();
148149
browsePage.waitForSpinnerToDisappear();
149150
cy.waitForAsyncRequest();
151+
browsePage.getTableView().click();
150152
browsePage.waitForHCTableToLoad();
151153

152154
//Revalidate below with DHFPROD-8455

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

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,12 @@ describe("Test '/Explore' left sidebar", () => {
2828
beforeEach(() => {
2929
//Restoring Local Storage to Preserve Session
3030
Cypress.Cookies.preserveOnce("HubCentralSession");
31-
cy.restoreLocalStorage().then(() => {
32-
cy.log(`**Go to Explore section**`);
33-
cy.visit("/tiles/explore");
34-
});
31+
cy.restoreLocalStorage();
3532

3633
});
3734

3835
it("Validate that the left sidebar opens up and closes correctly when un/selecting a base entity", () => {
36+
cy.visit("/tiles/explore");
3937
cy.wait(8000);
4038
entitiesSidebar.showMoreEntities().click({force: true});
4139
cy.log("**Base entity tooltip is visible**");
@@ -100,6 +98,8 @@ describe("Test '/Explore' left sidebar", () => {
10098
it("Validate facets on table view and applying them over a base entities", () => {
10199
// cy.log("**Opening table view**");
102100
// browsePage.getTableView().click();
101+
browsePage.waitForSpinnerToDisappear();
102+
103103
cy.log(`**Selecting 'Customer' base entity**`);
104104
cy.wait(2000);
105105
//TODO: Need to click on Show more because a 6th entity it's being created in another test and not being deleted after
@@ -116,6 +116,7 @@ describe("Test '/Explore' left sidebar", () => {
116116
browsePage.getAppliedFacets("Adams Cole").should("exist");
117117

118118
cy.log("**Checking table rows amount shown**");
119+
browsePage.getTableView().click();
119120
browsePage.getHCTableRows().should("have.length", 2);
120121

121122
cy.log("**Testing date facet**");
@@ -128,6 +129,7 @@ describe("Test '/Explore' left sidebar", () => {
128129
it("Base Entity Filtering from side panel", () => {
129130
cy.log("Navigate to Graph View and verify all entities displayed");
130131
cy.wait(5000);
132+
browsePage.getClearAllFacetsButton().click();
131133
browsePage.clickGraphView().click();
132134
cy.wait(5000);
133135
graphExplore.getPositionsOfNodes(ExploreGraphNodes.CUSTOMER_102).then((nodePositions: any) => {
@@ -144,6 +146,7 @@ describe("Test '/Explore' left sidebar", () => {
144146
entitiesSidebar.selectBaseEntityOption("Order");
145147
entitiesSidebar.getBaseEntityOption("Order").should("be.visible");
146148
cy.wait(1000);
149+
browsePage.getFinalDatabaseButton().click();
147150
graphExplore.getPositionsOfNodes(ExploreGraphNodes.CUSTOMER_102).then((nodePositions: any) => {
148151
let custCoordinates: any = nodePositions[ExploreGraphNodes.CUSTOMER_102];
149152
expect(custCoordinates).to.equal(undefined);
@@ -210,9 +213,12 @@ describe("Test '/Explore' left sidebar", () => {
210213
entitiesSidebar.getRelatedEntity("Customer").should("be.visible");
211214
entitiesSidebar.getRelatedEntity("Customer").trigger("mouseover");
212215
entitiesSidebar.getDisabledEntityTooltip().should("be.visible");
216+
browsePage.getClearAllFacetsButton().trigger("mouseover", {force: true});
213217

214218
cy.log("verify related entity panel is enabled when Customer is deselected as a base entity");
215219
entitiesSidebar.removeLastSelectedBaseEntity();
220+
cy.wait(500);
221+
entitiesSidebar.removeLastSelectedBaseEntity();
216222
entitiesSidebar.getRelatedEntity("Customer").should("be.visible");
217223
entitiesSidebar.getRelatedEntity("Customer").trigger("mouseover");
218224
entitiesSidebar.getDisabledEntityTooltip().should("not.exist");

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ describe("Test table export icon", () => {
2626
it("Validate that the export icon appear only when an entity is selected", () => {
2727
cy.log("**Go to Explore section**");
2828
toolbar.getExploreToolbarIcon().click();
29+
browsePage.getTableView().click();
2930

3031
cy.log("**Export button should not exist in snippet, graph and table view**");
3132
browsePage.clickFacetView();

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ describe("Validate table and column selector in explore", () => {
2929
});
3030
it("Navigate to Explore", () => {
3131
cy.waitUntil(() => toolbar.getExploreToolbarIcon()).click();
32+
browsePage.getTableView().click();
3233
browsePage.waitForSpinnerToDisappear();
3334
browsePage.waitForHCTableToLoad();
3435
});

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ describe("xml scenario for snippet view on browse documents page", () => {
3434
});
3535
it("select Customer XML entity instances and verify entity, docs, hub/entity properties", () => {
3636
toolbar.getExploreToolbarIcon().should("be.visible").click();
37+
browsePage.getTableView().click();
38+
browsePage.waitForSpinnerToDisappear();
3739
browsePage.clickFacetView();
3840
entitiesSidebar.openBaseEntityDropdown();
3941
entitiesSidebar.selectBaseEntityOption("Customer");

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,11 @@ describe("Test graph export to png", () => {
2525
it("Validate that the export png icon appear only in graph view and can export", () => {
2626
cy.log("**Go to Explore section**");
2727
toolbar.getExploreToolbarIcon().click();
28-
28+
browsePage.getTableView().click();
29+
graphExplore.getExportPNGIcon().should("not.exist");
2930
cy.log("**Export button should not exist in snippet and table view**");
3031
browsePage.clickFacetView();
3132
graphExplore.getExportPNGIcon().should("not.exist");
32-
browsePage.clickTableView();
33-
graphExplore.getExportPNGIcon().should("not.exist");
3433

3534
cy.log("**Select Graph view and check that the export button exist and show the tooltip**");
3635
browsePage.clickGraphView();

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import {Application} from "../../support/application.config";
22
import {toolbar} from "../../support/components/common";
3-
import browsePage from "../../support/pages/browse";
43
import graphExplore from "../../support/pages/graphExplore";
54
import LoginPage from "../../support/pages/login";
65
import {ExploreGraphNodes} from "../../support/types/explore-graph-nodes";
@@ -29,8 +28,7 @@ describe("Test '/Explore' graph right panel", () => {
2928
cy.log("**Go to Explore section?**");
3029
toolbar.getExploreToolbarIcon().click();
3130

32-
cy.log("**Select Graph view**");
33-
browsePage.clickGraphView();
31+
cy.log("**Verify Graph view is default view**");
3432
graphExplore.getGraphVisCanvas().should("be.visible");
3533
//cy.wait(2000);
3634
graphExplore.stopStabilization();

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ describe("Verify numeric/date facet can be applied", () => {
3333
});
3434
it("Apply numeric facet values multiple times, clears the previous values and applies the new one", () => {
3535
cy.waitUntil(() => toolbar.getExploreToolbarIcon()).click();
36+
browsePage.getTableView().click();
3637
browsePage.waitForSpinnerToDisappear();
3738
browsePage.waitForHCTableToLoad();
3839
entitiesSidebar.openBaseEntityDropdown();

0 commit comments

Comments
 (0)