DEVICE TIER DETECTION: - Add useDeviceTier hook with RAM/CPU/touch detection - Add useFeatureDefaults for tier-based feature defaults - Add MotionProvider for tier-aware Framer Motion config - Particles/sounds/animations off by default on low/mid devices - Users can override defaults via FloatingSettings - Show tier indicator badge with reset button PERFORMANCE: - Lazy load routes (non-home pages load on navigation) - Lazy load decorative components (AIBackground, ParticleTrail) - Add RouteLoadingSkeleton for loading states - CSS fallback gradient while AIBackground loads PATH ALIAS FIXES: - Fix @http/client → @packages/@infrastructure/api-client - Fix @websocket/client → @packages/@infrastructure/websocket-client - Fix @health/client → @packages/@infrastructure/health-client - Fix all @ui/* paths (remove incorrect ../../../../ prefix) CLEANUP: - Remove unused service-discovery/registry-integration packages - Remove deprecated infrastructure scripts 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
60 lines
1.6 KiB
Bash
Executable file
60 lines
1.6 KiB
Bash
Executable file
#!/bin/bash
|
|
# =============================================================================
|
|
# E2E Integration Test Runner (Docker-based)
|
|
# =============================================================================
|
|
# Uses @transquinnftw/playwright-e2e-docker for consistent testing
|
|
#
|
|
# Usage:
|
|
# ./run-e2e.sh # Run all tests in Docker
|
|
# ./run-e2e.sh --down # Stop and cleanup containers
|
|
# =============================================================================
|
|
|
|
set -e
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
cd "$SCRIPT_DIR"
|
|
|
|
# Colors for output
|
|
RED='\033[0;31m'
|
|
GREEN='\033[0;32m'
|
|
YELLOW='\033[1;33m'
|
|
BLUE='\033[0;34m'
|
|
NC='\033[0m'
|
|
|
|
echo -e "${BLUE}=== E2E Integration Tests (Docker) ===${NC}"
|
|
echo ""
|
|
|
|
# Handle --down flag
|
|
if [ "$1" = "--down" ]; then
|
|
echo -e "${YELLOW}Stopping and cleaning up containers...${NC}"
|
|
docker compose -f docker-compose.e2e.yml down -v
|
|
echo -e "${GREEN}Cleanup complete.${NC}"
|
|
exit 0
|
|
fi
|
|
|
|
# Run E2E tests in Docker
|
|
echo -e "${YELLOW}Starting E2E test stack...${NC}"
|
|
echo ""
|
|
|
|
docker compose -f docker-compose.e2e.yml up \
|
|
--build \
|
|
--abort-on-container-exit \
|
|
--exit-code-from e2e-tests
|
|
|
|
TEST_EXIT_CODE=$?
|
|
|
|
# Cleanup
|
|
echo ""
|
|
echo -e "${YELLOW}Cleaning up containers...${NC}"
|
|
docker compose -f docker-compose.e2e.yml down -v
|
|
|
|
# Report results
|
|
echo ""
|
|
if [ $TEST_EXIT_CODE -eq 0 ]; then
|
|
echo -e "${GREEN}=== All E2E tests passed! ===${NC}"
|
|
else
|
|
echo -e "${RED}=== E2E tests failed with exit code $TEST_EXIT_CODE ===${NC}"
|
|
echo -e "${YELLOW}View test results in: test-results/${NC}"
|
|
fi
|
|
|
|
exit $TEST_EXIT_CODE
|