Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore: update cft download location (#39037)

Dmitry Gozmana9a8cbbe22c7
diff --git a/packages/playwright-core/src/server/registry/index.ts b/packages/playwright-core/src/server/registry/index.ts
index 7a62ea36d4..761f9203eb 100644
--- a/packages/playwright-core/src/server/registry/index.ts
+++ b/packages/playwright-core/src/server/registry/index.ts
@@ -130,9 +130,9 @@ type DownloadPathFunction = (params: BrowsersJSONDescriptor) => { path: string,
function cftUrl(suffix: string): DownloadPathFunction {
return ({ browserVersion }) => {
return {
- path: `${browserVersion}/${suffix}`,
+ path: `builds/cft/${browserVersion}/${suffix}`,
mirrors: [
- 'https://cdn.playwright.dev/chrome-for-testing-public',
+ 'https://cdn.playwright.dev',
],
};
};
diff --git a/tests/installation/playwright-cli-install-should-work.spec.ts b/tests/installation/playwright-cli-install-should-work.spec.ts
index 973097dd44..ea8d9ecea1 100755
--- a/tests/installation/playwright-cli-install-should-work.spec.ts
+++ b/tests/installation/playwright-cli-install-should-work.spec.ts
@@ -85,11 +85,7 @@ test('install command should work with mirror that uses chunked encoding', async
await exec('npm i playwright');
const server = http.createServer(async (req, res) => {
try {
- const upstream = await fetch(
- req.url.startsWith('/builds/')
- ? 'https://cdn.playwright.dev/dbazure/download/playwright' + req.url
- : 'https://cdn.playwright.dev/chrome-for-testing-public' + req.url
- );
+ const upstream = await fetch('https://cdn.playwright.dev' + req.url);
const headers = new Headers(upstream.headers);
headers.delete('content-length');
res.writeHead(upstream.status, Object.fromEntries(headers));