Skip to content

Commit

Permalink
cherry-pick(#29271): Revert "chore: remove fake error from expect c…
Browse files Browse the repository at this point in the history
…alls (#28112)"
  • Loading branch information
github-actions[bot] committed Feb 1, 2024
1 parent 7a72adc commit e969797
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,8 @@ export class FrameDispatcher extends Dispatcher<Frame, channels.FrameChannel, Br
const result = await this._frame.expect(metadata, params.selector, { ...params, expectedValue });
if (result.received !== undefined)
result.received = serializeResult(result.received);
if (result.matches === params.isNot)
metadata.error = { error: { name: 'Expect', message: 'Expect failed' } };
return result;
}
}

0 comments on commit e969797

Please sign in to comment.