d30071b756
Tasks completed: - Task 11: Create CityAutocomplete React component with debounced search - Task 12: Implement OnlineBoard page with search and details components - Task 13: Create BackstopJS baseline configuration for Angular - Task 14: Create BackstopJS test configuration for React - Task 15: Create full-validation.sh script for e2e and visual regression testing All components built and tested successfully.
37 lines
921 B
Bash
Executable File
37 lines
921 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
echo "Starting Aeroflot Flights Full Validation"
|
|
echo "=============================================="
|
|
|
|
# 1. Start both servers
|
|
echo "1. Starting Angular and React servers..."
|
|
cd apps/angular && npm start &
|
|
ANGULAR_PID=$!
|
|
sleep 15
|
|
|
|
cd ../../apps/react && npm run dev &
|
|
REACT_PID=$!
|
|
sleep 10
|
|
|
|
# 2. Run Cypress tests
|
|
echo "2. Running Cypress e2e tests..."
|
|
cd ../../e2e
|
|
npm run cypress:run || true
|
|
|
|
# 3. Run BackstopJS comparison
|
|
echo "3. Running BackstopJS visual regression tests..."
|
|
npm run backstop:test || true
|
|
|
|
# 4. Kill servers
|
|
echo "4. Stopping servers..."
|
|
kill $ANGULAR_PID $REACT_PID 2>/dev/null || true
|
|
wait $ANGULAR_PID $REACT_PID 2>/dev/null || true
|
|
|
|
# 5. Generate report
|
|
echo "5. Validation complete!"
|
|
echo "=============================================="
|
|
echo "View results:"
|
|
echo " - BackstopJS: e2e/backstop/html_report_react/index.html"
|
|
echo " - Cypress: Check e2e/cypress/videos/"
|