Skip to content

Commit

Permalink
test: node hover
Browse files Browse the repository at this point in the history
  • Loading branch information
Myllaume committed Jul 6, 2024
1 parent 16d581e commit 0b22d75
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions e2e/graph.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,12 @@ describe('graph', () => {

cy.get('text:visible').should('have.length', 0);
});

it('should on node hover change opacity of no connected nodes', () => {
cy.get('[data-node="evergreen notes"]').trigger('mouseover');

['matuschak2019', 'engelbart1962', 'evergreen notes should be densely linked'].forEach((name) =>
cy.get(`[data-node="${name}"]`).find('a').should('have.attr', 'opacity', '0.5'),
);
});
});

0 comments on commit 0b22d75

Please sign in to comment.