Compare commits

...
Author SHA1 Message Date
iamdavidhill ad9441a39f fix(session-ui): align retry icon with label 2026-09-07 22:35:13 +00:00
2 changed files with 16 additions and 1 deletions
@@ -35,6 +35,21 @@ story("renders streamed reasoning without starting the app", async ({ mount }) =
await expect(timeline.getByText("Checking the current contract", { exact: true })).toBeVisible()
})
story("aligns the retry icon with the error label", async ({ mount }) => {
const timeline = await mount("current-session-timeline-rows--provider-retry")
const card = timeline.locator('[data-kind="session-retry-card"]')
const icon = card.locator('[data-slot="icon-svg"]')
const label = card.locator('[data-slot="session-turn-retry-message"]')
await expect(icon).toBeVisible()
await expect(label).toBeVisible()
const [iconY, labelY] = await Promise.all([
icon.evaluate((element) => element.getBoundingClientRect().y),
label.evaluate((element) => element.getBoundingClientRect().y),
])
expect(iconY).toBe(labelY)
})
// Moved from packages/app/e2e/regression/session-timeline-context-state.spec.ts
story("preserves a collapsed context group through count and status updates", async ({ mount }) => {
const timeline = await mount("current-session-research-agents--agent-research", { args: { scenario: "exploration" } })
@@ -52,7 +52,7 @@ export function SessionRetry(props: { status: SessionStatus; show?: boolean }) {
<div data-slot="session-turn-retry" class="w-full min-w-0">
<Card variant="error" class="error-card" data-kind="session-retry-card">
<div class="flex w-full items-start gap-2">
<Icon name="outline-hexagonal-warning" class="mt-0.5 shrink-0 text-v2-state-fg-danger" />
<Icon name="outline-hexagonal-warning" class="shrink-0 text-v2-state-fg-danger" />
<div class="min-w-0 flex-1">
<Tooltip appearance="standard" value={retry()?.message ?? ""} placement="top">
<div data-slot="session-turn-retry-message" class="cursor-help truncate">