Line

You are reading the unreleased docs (next). See latest (v0.9)

ui/client/features/tests/domain/CloneDialog

Pure (DOMAIN-001): what the clone dialog opens with, and the plain-language reasons it opens for.

Cockpit client (features), next. Source: ui/client/features/tests/domain/CloneDialog.ts.

Variables#

LOCK_REASON#

const LOCK_REASON: "Construct rewrites generated tests every time the flow changes, so an edit here would disappear. A clone is yours: nothing regenerates it." = 'Construct rewrites generated tests every time the flow changes, so an edit here would disappear. A clone is yours: nothing regenerates it.'

Defined in: ui/client/features/tests/domain/CloneDialog.ts:7

Why a locked test cannot simply be edited: said in words, not as a rule id or a file-permission error.

Functions#

cloneDialogFor()#

cloneDialogFor(data, file, reason): Omit<CloneDialog, "error" | "busy"> | null

Defined in: ui/client/features/tests/domain/CloneDialog.ts:12

The dialog for cloning one generated test, or null when that test is not in the listing.

Parameters#

data

TestsListing

file

string

reason

string

Returns#

Omit<CloneDialog, "error" | "busy"> | null


editStepReason()#

editStepReason(step): string

Defined in: ui/client/features/tests/domain/CloneDialog.ts:9

Parameters#

step

number

Returns#

string