mirror of
https://github.com/stablyai/orca.git
synced 2026-10-29 00:03:37 +00:00
@@ -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 > Feature tour.
|
||||
</p>
|
||||
|
||||
<Button variant="default" size="sm" className="w-full gap-1.5" onClick={handleOpenTour}>
|
||||
<PlayCircle className="size-3.5" />
|
||||
|
||||
@@ -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'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user