Skip to content

Commit

Permalink
elyra-ai#1981 Fixed unable to see tooltip for table headers having ch…
Browse files Browse the repository at this point in the history
…eckbox

Signed-off-by: Neha Gokhale <[email protected]>
  • Loading branch information
nmgokhale committed May 23, 2024
1 parent 486bbfa commit bcaf785
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default class TruncatedContentTooltip extends React.Component {
tooltipText = String(this.props.tooltipText);
}
if (this.props.content && this.props.content.type === Checkbox && this.tooltipRef && this.tooltipRef.firstChild) {
truncatedRef = this.tooltipRef.firstChild.lastChild; // checkbox label is in div -> label -> span
truncatedRef = this.tooltipRef.firstChild.lastChild.previousSibling; // checkbox label is in div -> label -> span
}
const tooltip = (
<div className="properties-tooltips">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ describe("Test if tips show up in table headers correctly", function() {
cy.saveWideFlyout("Configure Rename fields");
});

// TODO : Enable this test after fixing table tooltip issue.
it.skip("Test if tips show when checkbox in header has ellipsis", function() {
it("Test if tips show when checkbox in header has ellipsis", function() {
cy.toggleCategory("More Tables");
cy.openSubPanel("Configure Dummy Types");
cy.get(".properties-wf-children div[data-id='properties-vt-header-override']")
Expand Down

0 comments on commit bcaf785

Please sign in to comment.