Skip to content

Commit 953c7ae

Browse files
authored
Merge pull request #155 from interscript/live-spec-budget
test(neural-live): cold-download budget
2 parents 3b588b8 + f0123f1 commit 953c7ae

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

e2e/neural-live.spec.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,17 @@ import { expect, test } from "@playwright/test"
77
test.skip(!process.env.LIVE_NEURAL, "live download test — set LIVE_NEURAL=1")
88

99
test("lite int4 tier downloads, verifies, and vocalizes in the browser", async ({ page }) => {
10-
test.setTimeout(420_000)
10+
test.setTimeout(600_000)
1111
await page.goto(`${process.env.LIVE_NEURAL_BASE ?? "https://interscript.org"}/neural`)
1212
await page.selectOption("#model", "ara-diac-layerdrop-1.0-int4")
1313
await page.fill("#input", "قوله فحكمها في الوفاة")
1414
await page.click("#run")
1515
// progress must appear (index resolve + download), then the model decodes
1616
await expect(page.locator("#progress")).toBeVisible({ timeout: 30_000 })
1717
const output = page.locator("#output")
18-
await expect(output).not.toBeEmpty({ timeout: 420_000 })
18+
// fresh browser profile = full 95MB download through the assets
19+
// proxy; budget for a slow run, not just a warm one
20+
await expect(output).not.toBeEmpty({ timeout: 540_000 })
1921
const text = (await output.textContent()) ?? ""
2022
// fully vocalized output carries haraqat bytes and no error surface
2123
expect(text).toMatch(/[ً-ْٰٓ-ٕ]/)

0 commit comments

Comments
 (0)