From 180aa011d0c902b27b96e52ce07e39cbffde9b73 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Wed, 14 Oct 2020 22:26:56 -0700 Subject: [PATCH] test: make "remove header" test actually test be havior (#4092) --- test/page-route.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/page-route.spec.ts b/test/page-route.spec.ts index 0c281fc50b..a3a50f2f4d 100644 --- a/test/page-route.spec.ts +++ b/test/page-route.spec.ts @@ -100,7 +100,7 @@ it('should be able to remove headers', async ({page, server}) => { await page.route('**/*', route => { const headers = Object.assign({}, route.request().headers(), { foo: 'bar', - origin: undefined, // remove "origin" header + accept: undefined, // remove "accept" header }); route.continue({ headers }); }); @@ -110,7 +110,7 @@ it('should be able to remove headers', async ({page, server}) => { page.goto(server.PREFIX + '/empty.html') ]); - expect(serverRequest.headers.origin).toBe(undefined); + expect(serverRequest.headers.accept).toBe(undefined); }); it('should contain referer header', async ({page, server}) => {