Skip to content

ErrorDetails

Namespace: E2E

public sealed record ErrorDetails : IEquatable<ErrorDetails>

Structured facts of one failure, beside its prose message (upstream’s ErrorDetails, internal/errors.ts). An assertion carries what it expected and observed and how many nodes matched. A locator failure carries the locator as written, what it asked for, and how long it waited. A report bounds the text fields.

Inheritance: object

Implements: IEquatable<ErrorDetails>

View source

public string? Expected { get; init; }

What an assertion expected.

Value: string

View source

public string? Locator { get; init; }

The locator as written, such as getByRole("button", "Save").

Value: string

View source

public int? Matches { get; init; }

How many nodes the locator matched.

Value: int?

View source

public string? Name { get; init; }

The name, or the text, a locator asked for.

Value: string

View source

public string? Observed { get; init; }

What an assertion observed.

Value: string

View source

public string? Role { get; init; }

The role a locator asked for.

Value: string

View source

public string? TestId { get; init; }

The test id a locator asked for.

Value: string

View source

public long? WaitedMs { get; init; }

How long the locator waited, in milliseconds.

Value: long?

View source