Skip to content

Commit

Permalink
Add e2e test to check tooltip icon message
Browse files Browse the repository at this point in the history
  • Loading branch information
EMaksy committed Mar 1, 2024
1 parent 8dd6433 commit eba43d2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/e2e/cypress/e2e/hana_cluster_details.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,18 @@ context('HANA cluster details', () => {
.eq(1)
.should('have.class', host.status);
});

it(`${host.hostname} icon should have the expected tooltip message`, () => {
const message = 'Online';
cy.get(`.tn-site-details-${site.name}`)
.find('svg')
.eq(1)
.trigger('mouseover');

cy.get('.rc-tooltip-inner span').and((tooltip) => {
expect(tooltip.text()).to.contain(message);
});
});
});
});
});
Expand Down

0 comments on commit eba43d2

Please sign in to comment.