mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-10 03:51:54 +00:00
Added documentation for the comprehensive email tests that were created during debugging of the email notification issues. |
||
|---|---|---|
| .. | ||
| check-saved-email.js | ||
| check-status.js | ||
| check-ui-request.js | ||
| debug-email-save.js | ||
| debug-ui-email.js | ||
| decrypt-check.js | ||
| intercept-ui-request.js | ||
| monitor-email-send.js | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| save-user-password.js | ||
| test-alerts-api.js | ||
| test-api-endpoints.js | ||
| test-button-functionality.js | ||
| test-comprehensive.js | ||
| test-email-comprehensive.js | ||
| test-email-config.js | ||
| test-email-detailed.js | ||
| test-email-direct.js | ||
| test-email-final.js | ||
| test-email-send.js | ||
| test-final-verification.js | ||
| test-frontend-payload.js | ||
| test-mobile-dashboard.js | ||
| test-mobile-storage.js | ||
| test-no-config.js | ||
| test-save-with-password.js | ||
| test-thresholds-alerts.js | ||
| test-ui-email.js | ||
| test-ui-integration.js | ||
| test-ui-manual.js | ||
| test-with-config.js | ||
| trace-ui-test.js | ||
Pulse Testing Tools
This directory contains automated testing tools for the Pulse monitoring system.
Setup
cd /opt/pulse/testing-tools
npm install
Available Tests
1. Email Configuration Test
Tests email notification setup and persistence.
npm run test:email
2. API Endpoints Test
Tests all API endpoints for availability and correct responses.
npm run test:api
3. Button Functionality Test
Tests UI buttons and their actions using Playwright.
npm run test:buttons
4. Comprehensive Settings Test
Tests all major settings including thresholds, notifications, and encryption.
npm run test:comprehensive
5. Email Final Test
Comprehensive email functionality verification.
node test-email-final.js
6. UI Integration Test
Tests frontend-backend integration for email.
node test-ui-integration.js
7. Run All Tests
npm run test:all
Test Results
Tests will output:
- ✅ PASS for successful tests
- ❌ FAIL for failed tests
- Summary statistics at the end
Screenshots
UI tests may create screenshot files:
email-config-page.png- Email configuration pageerror-*.png- Error screenshots if tests fail
Notes
- Tests run against
http://localhost:3000(backend) andhttp://192.168.0.123:7655(frontend) - Playwright tests run in headless mode by default
- All tests are non-destructive and clean up after themselves