Display a tooltip when 'Test the page' is inactive
Context
In column view, when the Test the page button is inactive, it's expected for customer to see the reason on why it's inactive.
Acceptance Criteria
GIVEN The Test the page button is not active on the page list view
WHEN The customer hover the inactive button
THEN We'll display a tooltip with the reason
Additional information
As a first step, in this issue, we need to write down the list of all scenarios when the Test the page is not active. When ready, we'll provide the copywriting.
- The post is a draft
Scope a solution
When the post is a draft, wrap the disabled "Test the page" button with the existing tooltip markup (.wpr-btn-with-tool-tip + .wpr-tooltip pattern already used in the same template).
Files to modify:
-
views/settings/partials/rocket-insights/rocket-insights-column.php- Add tooltip wrapper whenis_draftis true - Add one translatable string for the tooltip message
Efforts
XS
@piotrbak Don't we have more scenarios where the Test the page button could be inactive aside from draft mentioned above?
LGTM