externalOutcomeBadge <NET>
Index
Constructors
Methods
Constructors
externalconstructor
Type parameters
- NET
Parameters
externalrootElement: PageElement<NET> | QuestionAdapter<PageElement<NET>>
Returns OutcomeBadge<NET>
Methods
externaliconText
The visible text of the outcome badge (typically an icon character like
'✓','✗','⏸').Example
await actor.attemptsTo(
Ensure.that(badge.iconText(), equals('✗')),
);Returns QuestionAdapter<string>
externaloutcomeType
The
data-outcomeattribute value representing the scenario's execution result (e.g.'SUCCESS','FAILURE','PENDING','SKIPPED','COMPROMISED','ERROR').Example
await actor.attemptsTo(
Ensure.that(badge.outcomeType(), equals('FAILURE')),
);Returns QuestionAdapter<string>
Interaction object representing an outcome badge icon showing the execution result of a test scenario (passed, failed, pending, etc.).
Unlike most interaction objects in the HTML reporter,
OutcomeBadgedoes not extend InteractionObject — it takes a root element directly. This keeps it lightweight for embedding inside other interaction objects like ScenarioItem orActivityItem.The badge communicates outcome both visually (via an icon/colour) and semantically (via the
data-outcomeattribute), making it accessible to both sighted users and automated tests.Instantiation (within a parent interaction object)
Usage in a test