mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
feat(webkit): roll to r2066 (#32343)
Fixes https://github.com/microsoft/playwright/issues/30305 --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Yury Semikhatsky <yurys@chromium.org>
This commit is contained in:
parent
ec681ca78c
commit
d61b207ce3
@ -27,7 +27,7 @@
|
||||
},
|
||||
{
|
||||
"name": "webkit",
|
||||
"revision": "2065",
|
||||
"revision": "2066",
|
||||
"installByDefault": true,
|
||||
"revisionOverrides": {
|
||||
"mac10.14": "1446",
|
||||
|
@ -601,8 +601,7 @@ test.describe('browser', () => {
|
||||
|
||||
test('support http2', async ({ browser, startCCServer, asset, browserName }) => {
|
||||
test.skip(browserName === 'webkit' && process.platform === 'darwin', 'WebKit on macOS doesn\n proxy localhost');
|
||||
const enableHTTP1FallbackWhenUsingHttp2 = browserName === 'webkit' && process.platform === 'linux';
|
||||
const serverURL = await startCCServer({ http2: true, enableHTTP1FallbackWhenUsingHttp2 });
|
||||
const serverURL = await startCCServer({ http2: true });
|
||||
const page = await browser.newPage({
|
||||
ignoreHTTPSErrors: true,
|
||||
clientCertificates: [{
|
||||
@ -611,19 +610,16 @@ test.describe('browser', () => {
|
||||
keyPath: asset('client-certificates/client/trusted/key.pem'),
|
||||
}],
|
||||
});
|
||||
// TODO: We should investigate why http2 is not supported in WebKit on Linux.
|
||||
// https://bugs.webkit.org/show_bug.cgi?id=276990
|
||||
const expectedProtocol = enableHTTP1FallbackWhenUsingHttp2 ? 'http/1.1' : 'h2';
|
||||
{
|
||||
await page.goto(serverURL.replace('localhost', 'local.playwright'));
|
||||
await expect(page.getByTestId('message')).toHaveText('Sorry, but you need to provide a client certificate to continue.');
|
||||
await expect(page.getByTestId('alpn-protocol')).toHaveText(expectedProtocol);
|
||||
await expect(page.getByTestId('alpn-protocol')).toHaveText('h2');
|
||||
await expect(page.getByTestId('servername')).toHaveText('local.playwright');
|
||||
}
|
||||
{
|
||||
await page.goto(serverURL);
|
||||
await expect(page.getByTestId('message')).toHaveText('Hello Alice, your certificate was issued by localhost!');
|
||||
await expect(page.getByTestId('alpn-protocol')).toHaveText(expectedProtocol);
|
||||
await expect(page.getByTestId('alpn-protocol')).toHaveText('h2');
|
||||
}
|
||||
await page.close();
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user