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: fix Chromium headed credential tests (#22044)
Max Schmittddd7765ef468
diff --git a/tests/library/browsercontext-credentials.spec.ts b/tests/library/browsercontext-credentials.spec.tsindex d952c5b58f..be1dd3c993 100644--- a/tests/library/browsercontext-credentials.spec.ts+++ b/tests/library/browsercontext-credentials.spec.ts@@ -99,7 +99,8 @@ it('should work with correct credentials and matching origin case insensitive',await context.close();});-it('should fail with correct credentials and mismatching scheme', async ({ browser, server }) => {+it('should fail with correct credentials and mismatching scheme', async ({ browser, server, browserName, headless }) => {+ it.fail(browserName === 'chromium' && !headless);server.setAuth('/empty.html', 'user', 'pass');const context = await browser.newContext({httpCredentials: { username: 'user', password: 'pass', origin: server.PREFIX.replace('http://', 'https://') }@@ -110,7 +111,8 @@ it('should fail with correct credentials and mismatching scheme', async ({ browsawait context.close();});-it('should fail with correct credentials and mismatching hostname', async ({ browser, server }) => {+it('should fail with correct credentials and mismatching hostname', async ({ browser, server, browserName, headless }) => {+ it.fail(browserName === 'chromium' && !headless);server.setAuth('/empty.html', 'user', 'pass');const hostname = new URL(server.PREFIX).hostname;const origin = server.PREFIX.replace(hostname, 'mismatching-hostname');@@ -123,7 +125,8 @@ it('should fail with correct credentials and mismatching hostname', async ({ broawait context.close();});-it('should fail with correct credentials and mismatching port', async ({ browser, server }) => {+it('should fail with correct credentials and mismatching port', async ({ browser, server, browserName, headless }) => {+ it.fail(browserName === 'chromium' && !headless);server.setAuth('/empty.html', 'user', 'pass');const origin = server.PREFIX.replace(server.PORT.toString(), (server.PORT + 1).toString());const context = await browser.newContext({