Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
QubitPi committed Oct 5, 2023
1 parent 34967aa commit 12665c0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion e2e_tests/integration/viz.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,9 @@ describe('Viz rendering', () => {
parseSpecialCharSequences: false
})

cy.get('#svg-vis').dblclick('center', { force: true })
cy.get('[data-testid="graphCanvas"]')
.trigger('click', 200, 200, { force: true })
.trigger('dblclick', 200, 200, { force: true })

cy.get('[data-testid="vizInspector"]', { timeout: 5000 }).contains(
'Undefined'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ export class GraphEventHandlerModel {
updateRelationships: true,
restartSimulation: true
})
this.graphModelChanged()

// this will persist node to Neo4J DB...
this.onGraphInteraction(NODE_ON_CANVAS_CREATE, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export class Visualization {
.attr('width', '100%')
.attr('height', '100%')
.attr('transform', 'scale(1)')
.attr('data-testid', 'graphCanvas')
// Background click event
// Check if panning is ongoing
.on('click', () => {
Expand Down

0 comments on commit 12665c0

Please sign in to comment.