Add debugging to test
This commit is contained in:
@@ -36,8 +36,20 @@ test.describe('Setup Wizard', () => {
|
|||||||
|
|
||||||
// Step 0: Welcome - Click "Connect to Wizard"
|
// Step 0: Welcome - Click "Connect to Wizard"
|
||||||
await expect(page.locator('h1')).toContainText('HarborForge Setup Wizard', { timeout: 10000 });
|
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")');
|
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
|
// Wait for step 1: Database
|
||||||
await page.waitForSelector('h2:has-text("Database configuration")', { timeout: 10000 });
|
await page.waitForSelector('h2:has-text("Database configuration")', { timeout: 10000 });
|
||||||
await page.click('button:has-text("Next")');
|
await page.click('button:has-text("Next")');
|
||||||
|
|||||||
Reference in New Issue
Block a user