ui/client/features/tests/components/TestDetail
Cockpit client (features), next. Source: ui/client/features/tests/components/TestDetail.tsx.
Functions#
TestDetail()#
TestDetail(
__namedParameters):Element
Defined in: ui/client/features/tests/components/TestDetail.tsx:28
Tools pane, Test tab: one test. A generated test is read-only, says so in words, and every way of changing it (Clone to edit, or Edit on a step) opens the clone dialog instead of failing.
Props#
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
test |
`GeneratedTest | YourTest | null` | Yes |
title |
string |
Yes | — | |
steps |
InlinePart[][] |
Yes | — | |
code |
CodeView |
Yes | — | |
comparison |
{ model: FreshnessModel; dismissed: boolean; dismiss: () => unknown } |
Yes | — | |
run |
TestRunProps |
Yes | — | Running this one test: its latest outcome, whether a run is live, and what to do about it. |
onClone |
(file: string) => void |
Yes | — | |
onEditStep |
(file: string, step: number) => void |
Yes | — | |
onShowCode |
() => void |
Yes | — | |
onHideCode |
() => void |
Yes | — | |
onEditSteps |
(file: string) => void |
Yes | — |
Returns#
Element