Add feature tour hint to nudge

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
brennanb2025
2026-05-17 10:47:30 -07:00
co-authored by Orca
parent 937cea87f9
commit 06a4fa4889
2 changed files with 12 additions and 2 deletions
@@ -127,9 +127,15 @@ export function FeatureTourNudge(): JSX.Element | null {
)}
</button>
<p className="line-clamp-2 text-xs leading-snug text-muted-foreground">
<p
className="line-clamp-2 text-xs leading-snug text-muted-foreground"
data-feature-tour-nudge-caption
>
{FEATURE_TOUR_NUDGE_TILE.caption}
</p>
<p className="text-xs leading-snug text-muted-foreground">
Reopen this any time from Help &gt; Feature tour.
</p>
<Button variant="default" size="sm" className="w-full gap-1.5" onClick={handleOpenTour}>
<PlayCircle className="size-3.5" />
+5 -1
View File
@@ -145,9 +145,13 @@ test.describe('Feature tour modal', () => {
'Browse GitHub and Linear tasks in-app. Start worktrees, review PRs, and approve without switching context.'
)
).toBeVisible()
await expect(nudge.getByText('Reopen this any time from Help > Feature tour.')).toBeVisible()
await expect
.poll(
() => nudge.locator('p').evaluate((node) => node.scrollHeight <= node.clientHeight + 1),
() =>
nudge
.locator('[data-feature-tour-nudge-caption]')
.evaluate((node) => node.scrollHeight <= node.clientHeight + 1),
{
message: 'feature tour nudge caption should not be clipped'
}