Fixing the e2e tests.
Some checks failed
Tests / Build and Push CICD Image (push) Failing after 1h14m58s
Tests / Trailing Whitespace Check (push) Has been skipped
Tests / End of File Check (push) Has been skipped
Tests / YAML Syntax Check (push) Has been skipped
Tests / TOML Syntax Check (push) Has been skipped
Tests / Mixed Line Ending Check (push) Has been skipped
Tests / TOML Formatting Check (push) Has been skipped
Tests / Ruff Linting (push) Has been skipped
Tests / Ruff Format Check (push) Has been skipped
Tests / Pyright Type Check (push) Has been skipped
Tests / Darglint Docstring Check (push) Has been skipped
Tests / No Docstring Types Check (push) Has been skipped
Tests / ESLint Check (push) Has been skipped
Tests / Prettier Format Check (push) Has been skipped
Tests / TypeScript Type Check (push) Has been skipped
Tests / TSDoc Lint Check (push) Has been skipped
Tests / Backend Tests (push) Has been skipped
Tests / Frontend Tests (push) Has been skipped
Tests / Backend Doctests (push) Has been skipped
Tests / Integration Tests (push) Has been skipped
Tests / End-to-End Tests (push) Has been skipped

Signed-off-by: Cliff Hill <xlorep@darkhelm.org>
This commit is contained in:
2025-10-30 16:24:21 -04:00
parent f29cd0f633
commit 10c6fa33c9
2 changed files with 11 additions and 1 deletions

View File

@@ -408,7 +408,8 @@ jobs:
docker run --rm dogar.darkhelm.org/darkhelm.org/plex-playlist/cicd:${GITHUB_SHA:-latest} bash -c "
cd /workspace/frontend &&
if [ -d 'tests/e2e' ] || grep -q 'playwright' package.json; then
yarn test:e2e || echo 'E2E tests failed or not configured yet'
echo 'Running E2E tests with Playwright...' &&
yarn test:e2e
else
echo ' No E2E tests found'
fi

View File

@@ -177,6 +177,15 @@ RUN export NODE_OPTIONS="--max-old-space-size=1024 --max-semi-space-size=64" &&
swapoff /tmp/swapfile 2>/dev/null || true && \
rm -f /tmp/swapfile
# Install Playwright browsers for E2E testing
RUN if grep -q '@playwright/test' package.json; then \
echo "Installing Playwright browsers..." && \
yarn playwright install --with-deps && \
echo "Playwright browsers installed successfully"; \
else \
echo "Playwright not found in package.json, skipping browser installation"; \
fi
# Verify all tools are working with the project
RUN cd /workspace/backend && \
echo "=== Backend Tools Verification ===" && \