Skip to content

Fix E2E Tests#15

Merged
pstaylor-patrick merged 3 commits intomainfrom
fix-e2e
Jan 7, 2026
Merged

Fix E2E Tests#15
pstaylor-patrick merged 3 commits intomainfrom
fix-e2e

Conversation

@pstaylor-patrick
Copy link
Copy Markdown
Owner

@pstaylor-patrick pstaylor-patrick commented Jan 7, 2026

split from #13

👋 TL;DR

Updated the redirect endpoints for both the stats and web applications to point to a new F3 Nation stats host and simplified path, removing year and location query parameters.

🔎 Details

The redirect logic in both the stats and web applications has been updated to use a new centralized stats host (pax-vault.f3nation.com) with a static regional path (/stats/region/35838). Previously, the redirects pointed to www.yourfullstack.com with dynamic query parameters for year and location. The changes simplify the redirect targets and remove the dependency on generating the current year and specific location codes.

Key changes:

  • Updated statsHost from www.yourfullstack.com to pax-vault.f3nation.com
  • Updated statsPath from /apps/f3fw/ytd.php to /stats/region/35838
  • Removed all logic related to currentYear and location query parameters
  • Simplified test descriptions and validation logic to match the new static redirect targets
  • Both the homepage redirect (in stats app) and the /stats path redirect (in web app) now point to the same simplified endpoint

✅ How to Test

  1. Run the updated E2E tests for both applications to verify the redirects work correctly:

    • Navigate to the stats app directory and run: npm run test:e2e
    • Navigate to the web app directory and run: npm run test:e2e
    • Both test suites should pass, confirming the redirects to the new host and path.
  2. Manual verification of redirects:

    • Stats App: Visit the homepage of the stats application. It should redirect to https://pax-vault.f3nation.com/stats/region/35838 without any query parameters.
    • Web App:
      • Visit the homepage of the web application. It should still redirect to https://regions.f3nation.com/muletown (unchanged).
      • Visit the /stats path of the web application. It should redirect to https://pax-vault.f3nation.com/stats/region/35838 without any query parameters.
  3. Verify no regression:

    • Ensure the web app homepage redirect to the regions site still functions correctly.
    • Confirm that all redirects use HTTPS protocol.

🥜 GIF

lack-of-hustle

@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
f3muletown-stats Ready Ready Preview, Comment Jan 7, 2026 3:41pm
f3muletown-website Ready Ready Preview, Comment Jan 7, 2026 3:41pm

@pstaylor-patrick pstaylor-patrick marked this pull request as ready for review January 7, 2026 15:41
@pstaylor-patrick pstaylor-patrick merged commit 6331f72 into main Jan 7, 2026
9 checks passed
@pstaylor-patrick pstaylor-patrick deleted the fix-e2e branch January 7, 2026 15:42
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.

1 participant