From e1c78c532db4fe9ca8523c7078d2ffd501c1edaa Mon Sep 17 00:00:00 2001 From: Zhi Date: Fri, 13 Mar 2026 19:42:02 +0000 Subject: [PATCH] Add debugging to test --- tests/wizard.spec.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/wizard.spec.ts b/tests/wizard.spec.ts index d7b1174..4a76597 100644 --- a/tests/wizard.spec.ts +++ b/tests/wizard.spec.ts @@ -36,8 +36,20 @@ test.describe('Setup Wizard', () => { // Step 0: Welcome - Click "Connect to Wizard" await expect(page.locator('h1')).toContainText('HarborForge Setup Wizard', { timeout: 10000 }); + console.log('Page URL before click:', page.url()); + console.log('Page content before click:', await page.content()); + await page.click('button:has-text("Connect to Wizard")'); + // Wait a bit and check what's shown + await page.waitForTimeout(2000); + console.log('Page URL after click:', page.url()); + console.log('Page content after click:', await page.content()); + + // Check for error messages + const errorMsg = await page.locator('.error, [role="alert"], text=Error').first().isVisible().catch(() => false); + console.log('Error visible:', errorMsg); + // Wait for step 1: Database await page.waitForSelector('h2:has-text("Database configuration")', { timeout: 10000 }); await page.click('button:has-text("Next")');