externalHistoryDots <NET>
Hierarchy
- InteractionObject<NET>
- HistoryDots
Index
Constructors
Methods
Constructors
externalconstructor
Type parameters
- NET
Parameters
externalrootElement: PageElement<NET> | QuestionAdapter<PageElement<NET>>
externaloptionaloptions: InteractionObjectOptions
Returns HistoryDots<NET>
Methods
externalcount
The number of history dots in the strip.
Corresponds to the number of historical runs available for this scenario.
Example
await actor.attemptsTo(
Ensure.that(historyDots.count(), equals(5)),
);Returns QuestionAdapter<number>
externaloutcomes
A structured array of
{type, title}entries for each dot, ordered from oldest to newest.Each entry's
typeis thedata-outcomeattribute value (e.g.'SUCCESS','FAILURE','RETRIED_SUCCESS') andtitleis the tooltip text describing the run result.Example
await actor.attemptsTo(
Ensure.that(historyDots.outcomes().as(entries => entries[0].type), equals('SUCCESS')),
Ensure.that(historyDots.outcomes().as(entries => entries[1].title), includes('Passed on retry')),
);Returns Question<Promise<HistoryDotEntry[]>>
externalisPresent
Checks whether the interaction object's root element is present in the DOM.
Since
InteractionObjectimplementsOptional, you can assert on presence directly:Ensure.that(view, isPresent())Returns Answerable<boolean>
Interaction object representing a strip of history dots showing the pass/fail pattern across recent test runs.
Each dot carries an outcome type (
data-outcomeattribute) and a tooltip title describing the run result. The strip provides a visual timeline of scenario stability, making it easy to spot flaky tests or recent regressions at a glance.History dots appear on scenario rows in the Test Scenarios view and in the Scenario Detail view's execution history section.
Instantiation (within a parent interaction object)
Usage in a test