Skip to content
This repository was archived by the owner on Mar 25, 2026. It is now read-only.

fix: update E2E tests to use correct port configuration#71

Closed
ryanrozich wants to merge 1 commit intorelease/v0.2.0-rc2from
fix/e2e-test-configuration
Closed

fix: update E2E tests to use correct port configuration#71
ryanrozich wants to merge 1 commit intorelease/v0.2.0-rc2from
fix/e2e-test-configuration

Conversation

@ryanrozich
Copy link
Copy Markdown
Owner

Summary

  • Fixed E2E tests to use dynamic port configuration via E2E_PORT environment variable
  • Removed hardcoded port 3000 and localhost:5173 references
  • Tests now work correctly when dev server runs on any port (e.g., 5174 when 5173 is taken)

Changes

  • Updated demo-deployment.spec.ts to use E2E_PORT env variable (default 5173)
  • Fixed hardcoded URLs in server-side demo tests to use relative paths
  • All tests now use Playwright's baseURL configuration properly

Test Results

Before: Tests were failing due to port mismatch (looking for port 3000/5173 when server was on 5174)
After: Demo deployment tests now pass (5/8 passing, 3 have other issues unrelated to port)

Testing

Run tests with custom port:

E2E_PORT=5174 npm run test:e2e

🤖 Generated with Claude Code

- Update demo-deployment tests to use E2E_PORT env variable (default 5173)
- Fix hardcoded localhost:5173 URLs to use relative paths
- Ensure all tests work with dynamic port configuration
- Tests now properly support dev server on any port via E2E_PORT
@github-actions
Copy link
Copy Markdown

github-actions bot commented Jul 10, 2025

🚀 Demo Preview Ready!

Preview URL: https://demo.rozich.net/ag-grid-react-components-pr-71/
API URL: https://demo.rozich.net/ag-grid-react-components-pr-71/api/

⚠️ Deployment tests failed - please check the workflow logs

This preview will be available for testing until the PR is merged or closed.

@ryanrozich
Copy link
Copy Markdown
Owner Author

This PR has been superseded by #102 (Release v0.2.0-rc3). The E2E tests need a fresh approach for the new headless components architecture. A new issue will be created to track E2E testing for headless components.

See HEADLESS_RC3_MIGRATION_PLAN.md for details.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

has-preview status: in-code-review PR ready, awaiting code review

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

1 participant