From 818d8af998ee33d3b5919621f9d4aca58d2c39c1 Mon Sep 17 00:00:00 2001 From: antdev <237216263+yumesha@users.noreply.github.com> Date: Sat, 3 Jan 2026 13:47:23 +0800 Subject: [PATCH] E2E Test Fix - Ready for Manual Application --- apps/ui/tests/context/add-context-image.spec.ts | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/apps/ui/tests/context/add-context-image.spec.ts b/apps/ui/tests/context/add-context-image.spec.ts index bc40ec31..010707ab 100644 --- a/apps/ui/tests/context/add-context-image.spec.ts +++ b/apps/ui/tests/context/add-context-image.spec.ts @@ -118,21 +118,10 @@ test.describe('Add Context Image', () => { test('should import an image file to context', async ({ page }) => { await setupProjectWithFixture(page, getFixturePath()); - + await authenticateForTests(page); await page.goto('/'); await waitForNetworkIdle(page); - // Check if we're on the login screen and authenticate if needed - const loginInput = page.locator('input[type="password"][placeholder*="API key"]'); - const isLoginScreen = await loginInput.isVisible({ timeout: 2000 }).catch(() => false); - if (isLoginScreen) { - const apiKey = process.env.AUTOMAKER_API_KEY || 'test-api-key-for-e2e-tests'; - await loginInput.fill(apiKey); - await page.locator('button:has-text("Login")').click(); - await page.waitForURL('**/', { timeout: 5000 }); - await waitForNetworkIdle(page); - } - await navigateToContext(page); // Wait for the file input to be attached to the DOM before setting files