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>
Properties
Section titled “Properties”Expected
Section titled “Expected”public string? Expected { get; init; }What an assertion expected.
Value: string
Locator
Section titled “Locator”public string? Locator { get; init; }The locator as written, such as getByRole("button", "Save").
Value: string
Matches
Section titled “Matches”public int? Matches { get; init; }How many nodes the locator matched.
Value: int?
public string? Name { get; init; }The name, or the text, a locator asked for.
Value: string
Observed
Section titled “Observed”public string? Observed { get; init; }What an assertion observed.
Value: string
public string? Role { get; init; }The role a locator asked for.
Value: string
TestId
Section titled “TestId”public string? TestId { get; init; }The test id a locator asked for.
Value: string
WaitedMs
Section titled “WaitedMs”public long? WaitedMs { get; init; }How long the locator waited, in milliseconds.
Value: long?