Skip to content

Added new test tests/console-errors.spec.ts to validate that key documentation pages don't produce JavaScript console errors.#3

Open
PavelShilin89 wants to merge 3 commits intomainfrom
test/add-console-errors-test
Open

Added new test tests/console-errors.spec.ts to validate that key documentation pages don't produce JavaScript console errors.#3
PavelShilin89 wants to merge 3 commits intomainfrom
test/add-console-errors-test

Conversation

@PavelShilin89
Copy link
Copy Markdown
Contributor

@PavelShilin89 PavelShilin89 commented Mar 3, 2026

Description

Added new test tests/console-errors.spec.ts to validate that key documentation pages don't produce JavaScript console errors.

Pages Tested

The test validates three critical documentation pages:

  • Home page (/)
  • Quick start guide (/Quick_start_guide)
  • Installation (/Installation)

Functionality

  • Monitors console messages for 'error' type
  • Captures unhandled JavaScript page errors
  • Waits for complete page load before validation
  • Asserts zero console errors occurred

Test Results

✅ All tests pass successfully - no JS console errors found on tested pages

Technical Implementation

  • Uses page.on('console') to track console errors
  • Uses page.on('pageerror') to track page errors
  • Follows established project conventions for Playwright tests
  • Each page is tested in a separate test case for clear failure isolation

Add 6 new test files: navigation, anchors, copy-button, broken-links,
page-404, mobile-viewport. Update README with new test descriptions.
Total: 34 tests.
- Создан tests/console-errors.spec.ts
- Проверяет главную страницу, Quick start guide и Installation
- Отслеживает консольные ошибки и ошибки страницы
- Все тесты проходят успешно
@PavelShilin89 PavelShilin89 changed the title Добавить тест на проверку консольных ошибок JavaScript Added new test tests/console-errors.spec.ts to validate that key documentation pages don't produce JavaScript console errors. Mar 3, 2026
@PavelShilin89 PavelShilin89 linked an issue Mar 5, 2026 that may be closed by this pull request
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Playwright test framework for Manticore docs

1 participant