← Back to Test Matrix
⚠️ Issue: console errors (future detection)

Console Errors Test Page

⚠️ Check your browser console!
This page logs multiple errors and warnings to the JavaScript console.
Open DevTools (F12) to see the console messages.

This page intentionally triggers console errors and warnings on page load to test detection of JavaScript issues.

Console Messages Triggered:

What's wrong?

Expected Detection:

Check: no-console-errors (automatic, detection not yet implemented)

Status: Future Issue

Detection logic would need to:

Common Sources of Console Errors:

Playwright Detection Example:

// In Playwright/Puppeteer crawler
const consoleMessages: Array<{ type: string; text: string }> = [];

page.on('console', (msg) => {
  const type = msg.type();
  if (type === 'error' || type === 'warning') {
    consoleMessages.push({
      type: type,
      text: msg.text()
    });
  }
});

await page.goto(url);

if (consoleMessages.length > 0) {
  // Flag page as having console errors
  reportIssue({
    type: 'console_errors',
    count: consoleMessages.length,
    messages: consoleMessages.slice(0, 5) // First 5
  });
}

How to Fix:

Production Best Practices:

Testing Note: To see the console errors, open your browser's DevTools (press F12 or right-click → Inspect), then navigate to the Console tab. You should see several red error messages and orange warning messages from this page.