#!/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/"