Skip to main content

externalActivityItem <NET>

Interaction object representing a single activity row in the scenario detail activity tree.

An ActivityItem is not instantiated directly — it is obtained via ScenarioDetailView.activityCalled, which locates the matching row by activity name:

const activity = scenarioDetailView.activityCalled('Alice clicks on the submit button');

Usage in a test

await actor.attemptsTo(
Ensure.that(scenarioDetailView.activityCalled('Alice enters "hello"').outcome(), equals('SUCCESS')),
Ensure.that(scenarioDetailView.activityCalled('Alice clicks submit').outcome(), equals('FAILURE')),
);

Hierarchy

Index

Constructors

externalconstructor

Methods

externalisPresent

  • Checks whether the interaction object's root element is present in the DOM.

    Since InteractionObject implements Optional, you can assert on presence directly:

    Ensure.that(view, isPresent())

    Returns Answerable<boolean>

externalname

  • The activity's display name (e.g. 'Alice clicks on the submit button').

    Example

    Ensure.that(activity.name(), includes('clicks on the submit button'))

    Returns QuestionAdapter<string>

externaloutcome

  • The activity's execution outcome (e.g. 'SUCCESS', 'FAILURE', 'ERROR').

    Reads the data-outcome attribute from the activity icon element.

    Example

    Ensure.that(activity.outcome(), equals('FAILURE'))

    Returns QuestionAdapter<string>

Page Options