Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] http credentials test is flaky on firefox linux #1303

Closed
aslushnikov opened this issue Mar 9, 2020 · 0 comments
Closed

[BUG] http credentials test is flaky on firefox linux #1303

aslushnikov opened this issue Mar 9, 2020 · 0 comments
Assignees

Comments

@aslushnikov
Copy link
Collaborator

Flaky run:
https://github.com/microsoft/playwright/pull/1301/checks?check_run_id=496478707

Test:

it('should fail if wrong credentials', async({browser, server}) => {
server.setAuth('/empty.html', 'user', 'pass');
const context = await browser.newContext({
httpCredentials: { username: 'foo', password: 'bar' }
});
const page = await context.newPage();
let response = await page.goto(server.EMPTY_PAGE);
expect(response.status()).toBe(401);
await context.setHTTPCredentials({
username: 'user',
password: 'pass'
});
response = await page.goto(server.EMPTY_PAGE);
expect(response.status()).toBe(200);
await context.close();
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant