Skip to content

Commit

Permalink
add comments to cypress
Browse files Browse the repository at this point in the history
Signed-off-by: Shenoy Pratik <[email protected]>
  • Loading branch information
ps48 committed Dec 7, 2024
1 parent 9ffec79 commit 5faeeb6
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,12 @@ describe.only('Testing Service map', () => {
});

it('Render the vis-network div and canvas', () => {
// Visit the page where your ServiceMap component is rendered
// Check the view where ServiceMap component is rendered
cy.get('.euiText.euiText--medium .panel-title').contains('Service map');
cy.get('.vis-network').should('exist');
cy.get('.vis-network canvas').should('exist');

// Check the canvas is not empty
cy.get('.vis-network canvas')
.should('have.attr', 'style')
.and('include', 'position: relative')
Expand All @@ -195,7 +196,9 @@ describe.only('Testing Service map', () => {
cy.get('.euiText.euiText--medium .panel-title').contains('Service map');
cy.get('.vis-network canvas').should('exist');

cy.get('.vis-network canvas').click(707, 388); // clicks on payment node
// clicks on payment node
cy.get('.vis-network canvas').click(707, 388);
// checks the duration in node details popover
cy.get('.euiText.euiText--small').contains('Average duration: 216.43ms').should('exist');
});

Expand Down

0 comments on commit 5faeeb6

Please sign in to comment.