-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Add prettier tooltips for KPI cards #23014
Conversation
@@ -137,6 +137,16 @@ describe('AllWebsitesDashboard', function () { | |||
|
|||
expect(await page.screenshotSelector('#main')).to.matchImage('dashboard_all_badges'); | |||
}); | |||
|
|||
it('tooltip should show on hover of kpi card', async function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just tested one KPI card tool tip, the logic is reused, I don't want to add too much additional time to the UI test suite.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a note here @caddoo, the method it
reads nicely when followed by wording that creates a sentence, e.g. here it would be it('should show a tooltip on hover of KPI card')
.
@caddoo Actually it seems like the tooltips are now not working anymore at all for KPIs. Not sure if that is a bug or an issue in the tooltip directive. But I thought it should also work without a title attribute 🤔 |
Yeah I noticed that as well during development, I mistakenly thought it started working again while adding it back. Anyway I looked for a few minutes and couldn't work it out, I don't think I want to spend time looking into jQuery UI tool tips to find out what causes this behavior. But also your concern about the title showing in the browser native way won't be an issue, if you look at the DOM when the jQuery UI tooltip opens it clears the I suppose for the sake of time it's fine just to add the title and move on from this. |
@caddoo Just for completeness: The behavior is quite easy explained. The jQuery tooltips in the directive are initialized without an |
Description:
Improves the tool tips for the KPI cards for all websites dashboard
(Ref: DEV-18917)
Review