parent
348d0c2bfa
commit
15b9963dc6
|
|
@ -50,7 +50,10 @@ export class FFNetworkManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
async setRequestInterception(enabled: boolean) {
|
async setRequestInterception(enabled: boolean) {
|
||||||
await this._session.send('Network.setRequestInterception', { enabled });
|
await Promise.all([
|
||||||
|
this._session.send('Page.setCacheDisabled', { cacheDisabled: enabled }),
|
||||||
|
this._session.send('Network.setRequestInterception', { enabled }),
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
_onRequestWillBeSent(event: Protocol.Network.requestWillBeSentPayload) {
|
_onRequestWillBeSent(event: Protocol.Network.requestWillBeSentPayload) {
|
||||||
|
|
|
||||||
|
|
@ -350,7 +350,6 @@ it('should return body for prefetch script', async ({ page, server, browserName
|
||||||
|
|
||||||
it('should bypass disk cache when interception is enabled', async ({ page, server, browserName }) => {
|
it('should bypass disk cache when interception is enabled', async ({ page, server, browserName }) => {
|
||||||
it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/30000' });
|
it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/30000' });
|
||||||
it.fixme(browserName === 'firefox', 'Returns cached response.');
|
|
||||||
await page.goto(server.PREFIX + '/frames/one-frame.html');
|
await page.goto(server.PREFIX + '/frames/one-frame.html');
|
||||||
await page.route('**/api*', route => route.continue());
|
await page.route('**/api*', route => route.continue());
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue