fix(#76): preserve Race Hub retry testid after RouteState migrate

Keep rh-retry discoverable for existing Race Hub recovery tests and accept
AbortSignal on bare-route default analysis fetch assertions.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-12 19:54:16 -04:00
parent 5ea8a4a9c4
commit ad0eb26e05
3 changed files with 8 additions and 1 deletions

View File

@@ -39,6 +39,8 @@ interface RouteStateProps {
onRetry?: () => void
retrying?: boolean
testId?: string
/** Optional override for the Retry button's data-testid (defaults to none). */
retryTestId?: string
className?: string
/** Optional availability strip (stale/limited/partial) above the state body. */
availability?: DataAvailability
@@ -72,6 +74,7 @@ export function RouteState({
onRetry,
retrying = false,
testId,
retryTestId,
className = '',
availability,
children,
@@ -113,6 +116,7 @@ export function RouteState({
onClick={onRetry}
disabled={retrying}
aria-busy={retrying || undefined}
data-testid={retryTestId}
>
{retrying ? 'Retrying…' : 'Retry'}
</button>