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: unflake 'should return url with basic auth info' test (#23798)
Max Schmitt5927b5e92b66
diff --git a/tests/page/page-goto.spec.ts b/tests/page/page-goto.spec.tsindex 19c7d1a05c..724f2db532 100644--- a/tests/page/page-goto.spec.ts+++ b/tests/page/page-goto.spec.ts@@ -800,9 +800,9 @@ it('should wait for load when iframe attaches and detaches', async ({ page, servexpect(await page.$('iframe')).toBe(null);});-it('should return url with basic auth info', async ({ page, server }) => {+it('should return url with basic auth info', async ({ page, server, loopback }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/23138' });- const url = `http://admin:admin@localhost:${server.PORT}/empty.html`;+ const url = `http://admin:admin@${loopback || 'localhost'}:${server.PORT}/empty.html`;await page.goto(url);- expect(await page.url()).toBe(url);+ expect(page.url()).toBe(url);});