fix tests
This commit is contained in:
parent
805d307292
commit
2d4b8a8c7a
|
|
@ -568,6 +568,8 @@ export class Page extends ChannelOwner<channels.PageChannel> implements api.Page
|
|||
private async _updateInterceptionPatterns() {
|
||||
const patterns = RouteHandler.prepareInterceptionPatterns(this._routes);
|
||||
await this._channel.setNetworkInterceptionPatterns({ patterns });
|
||||
// TODO: merge this with browserContext patterns
|
||||
await this._browserContext._mockingProxy?.setInterceptionPatterns({ patterns });
|
||||
}
|
||||
|
||||
private async _updateWebSocketInterceptionPatterns() {
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ test('all properties are populated', async ({ runInlineTest, server, request })
|
|||
|
||||
expect(await response.finished()).toBe(null);
|
||||
expect(request.serviceWorker()).toBe(null);
|
||||
expect(request.frame()).toBe(null); // we know the page, but not the frame
|
||||
expect(() => request.frame()).toThrowError("Assertion error"); // we know the page, but not the frame. should probably improve the error message
|
||||
|
||||
expect(request.failure()).toBe(null);
|
||||
expect(request.isNavigationRequest()).toBe(false);
|
||||
|
|
|
|||
Loading…
Reference in a new issue