Site: show downloads across every release [skip ci]
/release.json adds the sum of every release asset's downloads; the update manifests are the apps' checks, not downloads. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
87c42fde0e
commit
854c360ea1
7 files changed
+81
-26
No files matched your search
@@ -3,12 +3,13 @@ import { test as base } from "@playwright/test";
|
||||
export { expect, type Page } from "@playwright/test";
|
||||
|
||||
export const VERSION = "9.9.9";
|
||||
export const DOWNLOADS = 12345;
|
||||
|
||||
// Every page reads this version.
|
||||
export const test = base.extend<{ release: void }>({
|
||||
release: [
|
||||
async ({ context }, use) => {
|
||||
await context.route("**/release.json", (r) => r.fulfill({ json: { version: VERSION } }));
|
||||
await context.route("**/release.json", (r) => r.fulfill({ json: { version: VERSION, downloads: DOWNLOADS } }));
|
||||
await use();
|
||||
},
|
||||
{ auto: true },
|
||||
|
||||
Reference in new issue
Block a user