Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add overflowTooltip to editableLabel #720

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
feat: add test case for tooltip
Signed-off-by: Mathieu Anderson <mathieu.anderson@aiven.io>
  • Loading branch information
Mathieu Anderson committed Nov 12, 2023
commit f4c5929a76d96b22c497211c1688cfdb1a973d0b
11 changes: 11 additions & 0 deletions test/nbrowser/GridView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,15 @@ describe('GridView', function() {
// This throws an error, as the cell is not rendered.
assert.equal(await gu.getCell(0, 2).getText(), "2021-09-27 Mo\n2021-10-04 Mo");
});

it("should show a tooltip for ellided column names", async function () {
const columnName = "AReallyReallyReallyLongColumnName";
await gu.addColumn(columnName);
await gu.getColumnHeader({ col: columnName }).mouseMove();
await driver.wait(
() => driver.findWait(".test-tooltip", 500).isDisplayed(),
3000
);
assert.equal(await driver.find(".test-tooltip").getText(), columnName);
});
});
Loading