Skip to content

Commit c1f6537

Browse files
Aniela AmyMarkLogic Builder
authored andcommitted
DHFPROD-9646: Fixing clicking on explore graph logic for e2e.
1 parent 89c3b8b commit c1f6537

12 files changed

+20
-32
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ describe("Mapping", () => {
6161
propertyModal.getTypeFromDropdown("Related Entity").click();
6262
propertyModal.getCascadedTypeFromDropdown("Person").click();
6363
propertyModal.openForeignKeyDropdown();
64-
propertyModal.getForeignKey("id").click();
64+
propertyModal.getForeignKey("id").click({force: true});
6565
propertyModal.getSubmitButton().click();
6666
cy.waitForAsyncRequest();
6767
cy.wait(1000);

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ describe("Test '/Explore' left sidebar", () => {
142142
cy.wait(5000);
143143
browsePage.getClearAllFacetsButton().click({force: true});
144144
browsePage.clickGraphView();
145-
cy.wait(5000);
146145
graphExplore.getPositionsOfNodes(ExploreGraphNodes.CUSTOMER_102).then((nodePositions: any) => {
147146
let custCoordinates: any = nodePositions[ExploreGraphNodes.CUSTOMER_102];
148147
expect(custCoordinates).to.not.equal(undefined);
@@ -220,7 +219,6 @@ describe("Test '/Explore' left sidebar", () => {
220219

221220
cy.log("**verify both Customer and Order nodes are still present in graph**");
222221
browsePage.clickGraphView();
223-
cy.wait(1000);
224222
graphExplore.getPositionsOfNodes(ExploreGraphNodes.CUSTOMER_102).then((nodePositions: any) => {
225223
let custCoordinates: any = nodePositions[ExploreGraphNodes.CUSTOMER_102];
226224
expect(custCoordinates).to.not.equal(undefined);

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ describe("Test navigation with facets from graph side panel to details twice", (
3232
browsePage.getGraphLoader().should("be.visible");
3333
cy.log("**Select Graph view**");
3434
browsePage.clickGraphView();
35-
browsePage.waitForSpinnerToDisappear();
3635
graphExplore.getGraphVisCanvas().should("be.visible");
3736
graphExplore.stopStabilization();
3837

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe("Center node on graph", () => {
2929
cy.log("**Go to graph view**");
3030
browsePage.clickGraphView();
3131
graphExplore.getGraphVisCanvas().should("be.visible");
32-
cy.wait(7000);
32+
cy.wait(2000);
3333

3434
graphExplore.focusNode(ExploreGraphNodes.CUSTOMER_102);
3535
graphExplore.getPositionsOfNodes(ExploreGraphNodes.CUSTOMER_102).then((nodePositions: any) => {
@@ -62,4 +62,4 @@ describe("Center node on graph", () => {
6262
expect(centeredNodeY).to.be.lessThan(500);
6363
});
6464
});
65-
});
65+
});

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ describe("Entity Type Settings Modal", () => {
6262
cy.wait(3000);
6363
cy.log("**Select Graph view and open explore settings modal**");
6464
browsePage.clickGraphView();
65-
browsePage.waitForSpinnerToDisappear();
6665
explorePage.clickExploreSettingsMenuIcon();
6766
browsePage.getEntityTypeDisplaySettingsButton().scrollIntoView().click({force: true});
6867
dataModelDisplaySettingsModal.getModalBody().should("be.visible");
@@ -111,7 +110,6 @@ describe("Entity Type Settings Modal", () => {
111110
cy.wait(3000);
112111
cy.log("**Select Graph view and open explore settings modal**");
113112
browsePage.clickGraphView();
114-
browsePage.waitForSpinnerToDisappear();
115113
explorePage.clickExploreSettingsMenuIcon();
116114
browsePage.getEntityTypeDisplaySettingsButton().scrollIntoView().click({force: true});
117115
dataModelDisplaySettingsModal.getModalBody().should("be.visible");
@@ -152,4 +150,4 @@ describe("Entity Type Settings Modal", () => {
152150
dataModelDisplaySettingsModal.getModalCloseButton().click();
153151
dataModelDisplaySettingsModal.getModalBody().should("not.exist");
154152
});
155-
});
153+
});

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@ describe("Entity Type Settings Modal", () => {
100100
it("Open settings modal, check default values, select new ones cancel and check that the defaults values are keep", {defaultCommandTimeout: 120000}, () => {
101101
cy.log("**Select Graph view and open explore settings modal**");
102102
browsePage.clickGraphView();
103-
browsePage.waitForSpinnerToDisappear();
104-
cy.waitForAsyncRequest();
105103
explorePage.clickExploreSettingsMenuIcon();
106104
browsePage.getEntityTypeDisplaySettingsButton().scrollIntoView().click({force: true});
107105
dataModelDisplaySettingsModal.getModalBody().should("be.visible");
@@ -164,7 +162,6 @@ describe("Entity Type Settings Modal", () => {
164162
cy.wait(1000);
165163
cy.log("**Select Graph view and open explore settings modal**");
166164
browsePage.clickGraphView();
167-
browsePage.waitForSpinnerToDisappear();
168165
cy.wait(2000);
169166
explorePage.clickExploreSettingsMenuIcon();
170167
browsePage.getEntityTypeDisplaySettingsButton().scrollIntoView().click({force: true});
@@ -284,7 +281,6 @@ describe("Entity Type Settings Modal", () => {
284281
cy.wait(1000);
285282
cy.log("**Select Graph view**");
286283
browsePage.clickGraphView();
287-
browsePage.waitForSpinnerToDisappear();
288284
cy.wait(2000);
289285

290286
cy.log("**Go to specific entity panel and check icon, title and background color**");
@@ -377,4 +373,4 @@ describe("Entity Type Settings Modal", () => {
377373
graphExploreSidePanel.getSidePanel().scrollIntoView().should("be.visible");
378374
graphExploreSidePanel.getSidePanelHeading().should("contain.text", defaultEntityTypeData.propertiesValues.email);
379375
});
380-
});
376+
});

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ describe("Focus Defocus clusters", () => {
3131
cy.log("**Go to graph view**");
3232
browsePage.clickGraphView();
3333
graphExplore.getGraphVisCanvas().should("be.visible");
34-
cy.wait(5000);
34+
cy.wait(2000);
3535

3636
cy.log("**Picking up customer node and validate it is available in canvas**");
3737
graphExplore.focusNode(ExploreGraphNodes.CUSTOMER_102);
@@ -97,4 +97,4 @@ describe("Focus Defocus clusters", () => {
9797
expect(customerCoordinates).to.not.equal(undefined);
9898
});
9999
});
100-
});
100+
});

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ describe("Group Nodes", () => {
3131
//Graph view
3232
cy.log("**Go to graph view**");
3333
browsePage.clickGraphView();
34-
cy.waitForAsyncRequest();
3534
graphExplore.getGraphVisCanvas().should("be.visible");
3635
graphExplore.stopStabilization();
3736

@@ -210,4 +209,4 @@ describe("Group Nodes", () => {
210209
});
211210

212211
});
213-
});
212+
});

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ describe("Leaf Nodes", () => {
3232
//Graph view
3333
cy.log("**Go to graph view**");
3434
browsePage.clickGraphView();
35-
cy.waitForAsyncRequest();
3635
graphExplore.getGraphVisCanvas().should("be.visible");
3736
graphExplore.stopStabilization();
3837

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ describe("Concepts", () => {
3838
//Graph view
3939
cy.log("**Go to graph view**");
4040
browsePage.clickGraphView();
41-
cy.waitForAsyncRequest();
4241
graphExplore.getGraphVisCanvas().should("be.visible");
4342
cy.log("**Verify results number change**");
4443
cy.log("**Turn off concepts on graph**");
@@ -51,7 +50,6 @@ describe("Concepts", () => {
5150
//Graph view
5251
cy.log("**Go to graph view**");
5352
browsePage.clickGraphView();
54-
cy.waitForAsyncRequest();
5553
graphExplore.getGraphVisCanvas().should("be.visible");
5654

5755
graphView.getPhysicsAnimationToggle().scrollIntoView().should("have.value", "true");
@@ -122,7 +120,7 @@ describe("Concepts", () => {
122120
//Graph view
123121
cy.log("**Go to graph view**");
124122
browsePage.clickGraphView();
125-
cy.waitForAsyncRequest();
123+
graphExplore.getGraphVisCanvas().should("be.visible");
126124
graphExplore.stopStabilization();
127125
graphExplore.getGraphVisCanvas().should("be.visible");
128126

@@ -265,7 +263,6 @@ describe("Concepts", () => {
265263
//Graph view
266264
cy.log("**Go to graph view**");
267265
browsePage.clickGraphView();
268-
cy.waitForAsyncRequest();
269266
graphExplore.getGraphVisCanvas().should("be.visible");
270267
graphExplore.stopStabilization();
271268

@@ -274,4 +271,4 @@ describe("Concepts", () => {
274271
graphView.getPhysicsAnimationTooltip().should("be.visible");
275272
});
276273

277-
});
274+
});

0 commit comments

Comments
 (0)