- Create zsh-compatible common functions script (test-stability-common-zsh.sh)
- Fix script directory detection in zsh runner to use $(dirname "$0")
- Update zsh runner to source zsh-compatible common file instead of bash version
- Change npm script from test:playwright to test:web to match package.json
- Remove duplicate array declarations from zsh runner
- Make both scripts executable
Resolves "no such file or directory" and "command not found" errors when running zsh scripts.
- Extract shared functionality into test-stability-common.sh
- Refactor test-stability-runner.sh from 421 to 40 lines
- Refactor test-stability-runner-simple.sh from 423 to 117 lines
- Refactor test-stability-runner.zsh from 607 to 93 lines
- Net reduction: 1,336 deletions, 485 additions (-851 lines)
- Maintain all existing functionality while eliminating code duplication
- Improve maintainability with single source of truth for common functions
- Add input validation for all numeric values before math operations
- Implement safe math calculations with zero-division protection
- Add error redirection (2>/dev/null) to suppress command errors
- Improve process management with proper background process cleanup
- Add fallback values when commands return invalid output
- Fix progress bar display with better validation and error handling
- Ensure all math expressions use validated numeric inputs
Resolves "bad math expression: operator expected" errors in track_test_progress function.
- Replace importUser with importUserFromAccount for improved test reliability
- Add performance monitoring with createPerformanceCollector and step-by-step timing
- Implement comprehensive test documentation with detailed sections for maintenance, debugging, and integration
- Add test-stability-results/ to .gitignore to prevent committing generated test analysis files
- Port test structure to match 60-new-activity.spec.ts style with performance tracking integration
- Add browser-specific timeout handling and error recovery mechanisms
- Include detailed test flow documentation with 11 distinct phases and performance metrics collection