From e1c18e84674047661d9a37f9d68bf2654eb644b0 Mon Sep 17 00:00:00 2001 From: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com> Date: Wed, 26 Aug 2026 17:22:35 +0800 Subject: [PATCH] test(publish): scope zip picker in folder upload e2e Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com> --- web/e2e/publish-flow-ui.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/e2e/publish-flow-ui.spec.ts b/web/e2e/publish-flow-ui.spec.ts index 867c8248..6cb0cf40 100644 --- a/web/e2e/publish-flow-ui.spec.ts +++ b/web/e2e/publish-flow-ui.spec.ts @@ -45,7 +45,9 @@ test.describe('Publish Flow UI (Real API)', () => { }) await expect(namespaceTrigger).toContainText(`@${namespace.slug}`) - await page.locator('input[type="file"]').setInputFiles(packagePath) + // The publish form also exposes a second file input for folder selection. + // Scope this regression test to the existing ZIP picker. + await page.locator('input[type="file"][accept*=".zip"]').setInputFiles(packagePath) await expect(page.getByText(path.basename(packagePath))).toBeVisible() const confirmButton = page.getByRole('button', { name: 'Confirm Publish' }) await expect(confirmButton).toBeEnabled()