-
Notifications
You must be signed in to change notification settings - Fork 146
test(e2e): run E2E via Docker Compose and fix compose “version” warning #1199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Remove verbose logging from Dockerfile - pin dependent actions in new e2e workflow to their respective commits - refactor the tests to work slightly more robustly (handle creds, etc)
- Removed the obsolete 'version: 3.7' field from docker-compose.yml - This fixes the warning about the version field being obsolete in newer Docker Compose versions - The e2e tests now run without warnings
✅ Deploy Preview for endearing-brigadeiros-63f9d0 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
- Fix OIDC configuration syntax errors - Update Cypress baseUrl to use correct port (8080) - Fix CI workflow to use correct port and remove & from start command - Ensure frontend is built before running tests - CSRF protection already properly disabled in test environment Cypress tests now pass: - autoApproved.cy.js: 1/1 passing - login.cy.js: 8/8 passing - repo.cy.js: failing due to rate limiting (separate issue) This resolves the main issues mentioned in the failing job: - CSRF Token Missing Errors: Fixed by proper test environment config - Shell Script Syntax Error: Fixed by removing & from start command - Unknown Authentication Strategy: Fixed OIDC syntax errors - Route Not Hit: Fixed by building frontend and using correct port
- Fix CSRF protection by setting NODE_ENV=test in CI - Fix OIDC strategy by checking enabled flag before configuration - Fix port configuration by using correct server port (8080) - Add start:ci script to run server only (not dev client) - Set CYPRESS_BASE_URL environment variable for consistency This should resolve: - CSRF token missing errors in CI - Unknown authentication strategy errors - Port mismatch issues (3000 vs 8080) - Shell script syntax errors with & character
Resolved conflicts: - .github/workflows/ci.yml: Kept improved Cypress configuration with start:ci script - package.json: Merged start:ci script with updated build script - package-lock.json: Used main branch version for dependency resolution - .eslintrc.json: Fixed cypress/globals environment issue This maintains all the e2e testing improvements while incorporating latest main branch changes.
Hi, the work from PR #1165 must be properly attributed to our company (RBC). I would appreciate if you would refrain from cherry-picking those public commits onto your own branches. We have strict policy internally and it's not open to direct collaboration (moving the code into separate branches/PRs). That said, thank you for these fixes and I really appreciate the work in this PR! I would like to integrate them back into the original PR instead of working through a duplicate one. I invite you to review the original PR if possible. Closing in favour of #1165 |
Thank you for the clarification @coopernetes sir. I understand and will avoid duplicating work from pull request #1165 going forward. If there are any tasks or issues where assistance is needed, such as Cypress CI fixes or Docker Compose updates, please feel free to point me to them. I would be happy to contribute wherever it is helpful. |
This PR resolves merge conflicts and npm test errors that arose after rebasing #1165 (pr-1165) onto the latest main.
It also fixes a timeout issue in the E2E test suite, ensuring the new Docker Compose–based setup runs successfully without hanging.
Key changes:
Resolved package-lock.json and source conflicts from rebase
Installed missing test dependencies to fix npm test errors
Adjusted Docker Compose configuration by removing the obsolete version field
Stabilized the E2E workflow so it waits correctly for the service healthcheck