Skip to content

Commit

Permalink
fix(flamegraph): Make table tooltip invisible when user not hovering …
Browse files Browse the repository at this point in the history
…on table (#1749)
  • Loading branch information
pavelpashkovsky authored Nov 29, 2022
1 parent e490138 commit 5210aa7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
11 changes: 5 additions & 6 deletions cypress/integration/webapp/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ describe('basic test', () => {
});
});

//
it('validates "Reset View" button works', () => {
cy.intercept('**/render*', {
fixture: 'simple-golang-app-cpu.json',
Expand Down Expand Up @@ -221,7 +220,7 @@ describe('basic test', () => {
findFlamegraph(1)
.findByTestId('flamegraph-view')
.findByTestId('tooltip')
.should('be.visible');
.should('have.css', 'visibility', 'visible');

findFlamegraph(1)
.findByTestId('tooltip-title')
Expand Down Expand Up @@ -255,7 +254,7 @@ describe('basic test', () => {
findFlamegraph(2)
.findByTestId('flamegraph-view')
.findByTestId('tooltip')
.should('be.visible');
.should('have.css', 'visibility', 'visible');

findFlamegraph(2)
.findByTestId('tooltip-title')
Expand Down Expand Up @@ -301,7 +300,7 @@ describe('basic test', () => {
cy.waitForFlamegraphToRender().trigger('mousemove', 0, 0);
cy.findByTestId('flamegraph-view')
.findByTestId('tooltip')
.should('be.visible');
.should('have.css', 'visibility', 'visible');

cy.findByTestId('tooltip-title').should('have.text', 'total');
cy.findByTestId('tooltip-table').should(
Expand All @@ -328,7 +327,7 @@ describe('basic test', () => {
cy.findByTestId('table-view').trigger('mousemove', 150, 80);
cy.findByTestId('table-view')
.findByTestId('tooltip')
.should('be.visible');
.should('have.css', 'visibility', 'visible');

cy.findByTestId('tooltip-table').should(
'have.text',
Expand Down Expand Up @@ -356,7 +355,7 @@ describe('basic test', () => {
cy.findByTestId('table-view').trigger('mousemove', 150, 80);
cy.findByTestId('table-view')
.findByTestId('tooltip')
.should('be.visible');
.should('have.css', 'visibility', 'visible');

cy.findByTestId('tooltip-table').should(
'have.text',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
font-size: 12px;
visibility: hidden;
z-index: 2;
pointer-events: none;

&.flamegraphDiffTooltip {
width: 450px;
Expand Down

0 comments on commit 5210aa7

Please sign in to comment.