Add feature tour Help menu hint (#2150)
Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
parent
f9191c6f2b
commit
a9fbcbc0f6
|
|
@ -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" />
|
||||
|
|
|
|||
|
|
@ -252,7 +252,8 @@ export default function FeatureWallModal(): JSX.Element | null {
|
|||
<DialogHeader className="gap-1">
|
||||
<DialogTitle>Explore some of Orca's features</DialogTitle>
|
||||
<DialogDescription>
|
||||
Tasks, terminal, agents, browser, SSH, review, and more.
|
||||
<span className="block">Tasks, terminal, agents, browser, SSH, review, and more.</span>
|
||||
<span className="block">Reopen this any time from Help > Feature tour.</span>
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@ test.describe('Feature tour modal', () => {
|
|||
await expect(
|
||||
orcaPage.getByText('Tasks, terminal, agents, browser, SSH, review, and more.')
|
||||
).toBeVisible()
|
||||
await expect(orcaPage.getByText('Reopen this any time from Help > Feature tour.')).toBeVisible()
|
||||
await expect(orcaPage.getByRole('listitem')).toHaveCount(12)
|
||||
await expect(
|
||||
orcaPage.getByRole('listitem', { name: /Remote worktrees over SSH/i })
|
||||
|
|
@ -144,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'
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue