mirror of
https://github.com/microsoft/playwright.git
synced 2024-10-27 05:46:28 +03:00
This reverts commit 2c3955a28c
.
Relates https://github.com/microsoft/playwright-python/issues/2258
This commit is contained in:
parent
15a20259b9
commit
622153db18
@ -262,6 +262,8 @@ export class FrameDispatcher extends Dispatcher<Frame, channels.FrameChannel, Br
|
|||||||
const result = await this._frame.expect(metadata, params.selector, { ...params, expectedValue });
|
const result = await this._frame.expect(metadata, params.selector, { ...params, expectedValue });
|
||||||
if (result.received !== undefined)
|
if (result.received !== undefined)
|
||||||
result.received = serializeResult(result.received);
|
result.received = serializeResult(result.received);
|
||||||
|
if (result.matches === params.isNot)
|
||||||
|
metadata.error = { error: { name: 'Expect', message: 'Expect failed' } };
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user