Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 20, 2026

Playwright tests were configured but not running in CI. This adds automated E2E testing on all pull requests.

Changes

  • GitHub Actions workflow (.github/workflows/e2e-tests.yml)

    • Triggers on PR to main + manual dispatch
    • Runs libsql-server via Docker (pinned v0.24.26) for test database
    • Health check with 60s retry loop before migrations
    • Uploads test artifacts (screenshots, traces) on failure
    • Concurrency control cancels stale runs
  • Fixed import bug in playwright.fixtures.ts

    • Database import path was ./src/lib/database (non-existent)
    • Corrected to ./src/database
  • Updated .gitignore for test artifacts

Environment Setup

Tests require:

  • DATABASE_URL=http://127.0.0.1:8080 (libsql-server)
  • AUTH_SECRET=test-secret-for-e2e-tests-only (Next Auth)
  • CI=true (enables Playwright's CI-specific behavior)

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • get.tur.so
    • Triggering command: /usr/bin/curl curl -sSfL REDACTED git ess_�� get --local e/node_modules/.bin/ldd user.name (dns block)
  • https://api.github.com/repos/tursodatabase/libsql/releases
    • Triggering command: /usr/bin/curl curl -sL REDACTED git ess_�� get --local e/node_modules/.bin/ldd credential.helpenode (http block)
    • Triggering command: /usr/bin/curl curl -s REDACTED it rev-parse -- ess_�� get --local k/website/node_modules/.bin/sh pull.rebase (http block)
  • https://api.github.com/repos/tursodatabase/libsql/releases/latest
    • Triggering command: /usr/bin/curl curl -sL REDACTED git ess_�� get --global node_modules/@npmcli/run-script/lib/node-gyp-bin/ldd pull.rebase (http block)
  • umami.ncrmro.com
    • Triggering command: /home/REDACTED/.cache/ms-playwright/chromium_headless_shell-1181/chrome-linux/headless_shell /home/REDACTED/.cache/ms-playwright/chromium_headless_shell-1181/chrome-linux/headless_shell --disable-field-trial-config --disable-REDACTED-networking --disable-REDACTED-timer-throttling --disable-REDACTEDing-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-REDACTED-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=AcceptCHFrame,AutoExpandDetailsElement,AvoidUnnecessaryBeforeUnloadCheckSync,CertificateTransparencyComponentUpdater,DestroyProfileOnBrowserClose,DialMediaRouteProvider,ExtensionManifestV2Disabled,GlobalMediaControls,HttpsUpgrades,Impro dd (dns block)
    • Triggering command: /home/REDACTED/.cache/ms-playwright/chromium_headless_shell-1181/chrome-linux/headless_shell /home/REDACTED/.cache/ms-playwright/chromium_headless_shell-1181/chrome-linux/headless_shell --disable-field-trial-config --disable-REDACTED-networking --disable-REDACTED-timer-throttling --disable-REDACTEDing-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-REDACTED-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=AcceptCHFrame,AutoExpandDetailsElement,AvoidUnnecessaryBeforeUnloadCheckSync,CertificateTransparencyComponentUpdater,DestroyProfileOnBrowserClose,DialMediaRouteProvider,ExtensionManifestV2Disabled,GlobalMediaControls,HttpsUpgrades,Impro bin/sh (dns block)
    • Triggering command: /home/REDACTED/.cache/ms-playwright/chromium_headless_shell-1181/chrome-linux/headless_shell /home/REDACTED/.cache/ms-playwright/chromium_headless_shell-1181/chrome-linux/headless_shell --disable-field-trial-config --disable-REDACTED-networking --disable-REDACTED-timer-throttling --disable-REDACTEDing-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-REDACTED-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=AcceptCHFrame,AutoExpandDetailsElement,AvoidUnnecessaryBeforeUnloadCheckSync,CertificateTransparencyComponentUpdater,DestroyProfileOnBrowserClose,DialMediaRouteProvider,ExtensionManifestV2Disabled,GlobalMediaControls,HttpsUpgrades,Impro in/ldd (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Ensure E2E playwright runs on PR's


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

- Create GitHub Actions workflow to run Playwright tests on pull requests
- Use Docker to run libsql-server (sqld) for test database
- Run database migrations before tests
- Set necessary environment variables (DATABASE_URL, AUTH_SECRET)
- Upload test artifacts on failure
- Fix import path in playwright.fixtures.ts (db should be from src/database not src/lib/database)
- Add .test-db to .gitignore

Co-authored-by: ncrmro <8276365+ncrmro@users.noreply.github.com>
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jan 20, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
ncrmro-website 3ccf8cf Commit Preview URL

Branch Preview URL
Jan 20 2026, 02:46 PM

Copilot AI and others added 2 commits January 20, 2026 14:40
Co-authored-by: ncrmro <8276365+ncrmro@users.noreply.github.com>
- Pin libsql-server Docker image to v0.24.26 for reproducible builds
- Replace fixed sleep with retry loop for health check
- Add 60-second timeout with clear error message on failure

Co-authored-by: ncrmro <8276365+ncrmro@users.noreply.github.com>
Copilot AI changed the title [WIP] Add E2E Playwright tests for PRs Add E2E Playwright tests on pull requests Jan 20, 2026
Copilot AI requested a review from ncrmro January 20, 2026 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants