Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
test(chromium): remove the Intervention header test (#43481)
Yury Semikhatsky1f23052b7753
diff --git a/tests/library/chromium/chromium.spec.ts b/tests/library/chromium/chromium.spec.tsindex 123b42eca5..1217592825 100644--- a/tests/library/chromium/chromium.spec.ts+++ b/tests/library/chromium/chromium.spec.ts@@ -130,26 +130,6 @@ test('should not create a worker from a shared worker', async ({ page, server })expect(serviceWorkerCreated).not.toBeTruthy();});-test('Page.route should work with intervention headers', async ({ server, page }) => {- server.setRoute('/intervention', (req, res) => res.end(`- <script>- document.write('<script src="${server.CROSS_PROCESS_PREFIX}/intervention.js">' + '</scr' + 'ipt>');- </script>- `));- server.setRedirect('/intervention.js', '/redirect.js');- let serverRequest = null;- server.setRoute('/redirect.js', (req, res) => {- serverRequest = req;- res.end('console.log(1);');- });-- await page.route('*', route => route.continue());- await page.goto(server.PREFIX + '/intervention');- // Check for feature URL substring rather than https://www.chromestatus.com to- // make it work with Edgium.- expect(serverRequest.headers.intervention).toContain('feature/5718547946799104');-});-playwrightTest('should close service worker together with the context', async ({ browserType, server }) => {const browser = await browserType.launch();const context = await browser.newContext();