SystemCockpitTester class final

Tester for a release app that exposes no Cockpit integration.

All commands are routed through the native/system control plane. A performance adapter may be supplied by a platform driver when it can produce a real report; otherwise CockpitTester.profile fails explicitly with a capability error.

Inheritance

Constructors

SystemCockpitTester({required CockpitSystemTestTarget target, required CockpitSystemControlService controlService, required CockpitSystemControlActionService actionService, required String workspaceRoot, required CockpitLocaleProfile initialLocale, CockpitLocaleProfile localeProvider()?, CockpitPerformanceAdapter? performance})

Properties

hashCode → int
The hash code for this object.
no setterinherited
locale → CockpitLocaleProfile
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

appAction(String name, {Map<String, Object?>? arguments}) → Future<Map<String, Object?>?>
Invokes an app-registered action by name with optional arguments.
inherited
clear(Object target) → Future<CockpitCommandExecution>
inherited
collectSnapshot({CockpitSnapshotOptions options = const CockpitSnapshotOptions.baseline()}) → Future<CockpitSnapshot>
Reads the current target tree back as a CockpitSnapshot so scenario code can inspect real state instead of only issuing assertions.
inherited
describeApp() → Future<Map<String, Object?>>
Reads app-authored state — whatever the application chose to expose through its app state provider, evaluated at call time. Targets without a provider answer with an unsupported-capability failure, which the runner reports as a blocked attempt.
inherited
describeCapabilities() → Future<CockpitCapabilities>
inherited
describeFeatures() → Future<Set<CockpitTestFeature>>
inherited
execute(CockpitCommand command) → Future<CockpitCommandExecution>
inherited
expectText(Object target, Object expected, {CockpitTextMatchMode match = CockpitTextMatchMode.exact}) → Future<CockpitCommandExecution>
Asserts target's text matches expected using match; the localized text form resolves against the active locale first.
inherited
expectVisible(Object target) → Future<CockpitCommandExecution>
inherited
focus(Object target) → Future<CockpitCommandExecution>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
press(CockpitTextInputAction action, {Object? target}) → Future<CockpitCommandExecution>
inherited
profile(Future<void> action(), {String name = 'performance'}) → Future<CockpitPerformanceReport>
inherited
screenshot() → Future<CockpitCommandExecution>
inherited
scroll(Object target) → Future<CockpitCommandExecution>
inherited
tap(Object? target) → Future<CockpitCommandExecution>
inherited
toString() → String
A string representation of this object.
inherited
type(String value, {required Object into}) → Future<CockpitCommandExecution>
inherited
waitFor(Object target, {bool absent = false}) → Future<CockpitCommandExecution>
Waits until target is present, or until it is gone when absent is true. Waiting for absence is the shared way to assert that something disappeared: every runner surfaces it as the same protocol wait.
inherited
waitForUi() → Future<CockpitCommandExecution>
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited