test: unflake 'should return url with basic auth info' test (#23798)
On android there is no localhost. We should never use just localhost.
This commit is contained in:
parent
7a060d13f0
commit
5927b5e92b
|
|
@ -800,9 +800,9 @@ it('should wait for load when iframe attaches and detaches', async ({ page, serv
|
||||||
expect(await page.$('iframe')).toBe(null);
|
expect(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' });
|
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);
|
await page.goto(url);
|
||||||
expect(await page.url()).toBe(url);
|
expect(page.url()).toBe(url);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue