Skip to content
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

feat(e2e): Enhance end-to-end testing and CI configuration #214

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

htuzel
Copy link
Collaborator

@htuzel htuzel commented Dec 18, 2024

What is Changed

  • Now e2e tests supports master model record level, too
  • Updated e2e.sh to support multiple test configurations for variation and master-level products, ensuring required environment variables are set before running tests.
  • Modified GitHub Actions CI workflow to include TEST_MASTER_PRODUCT_ID and added matrix strategy for running frontend tests with different record models and index prefixes.
  • Introduced new Cypress test file frontend.cy.js for Algolia search scenarios, replacing the deleted variation.cy.js.
  • Updated importPreferences.js to dynamically set preferences based on the record model.
  • Enhanced variation_index.test.js to handle product searches based on the current record model.

Internal documentation is here

Need to add TEST_MASTER_PRODUCT_ID and CODE_VERSION to GitHub vars for running tests correctly

@htuzel htuzel requested a review from sbellone December 18, 2024 15:04
@htuzel htuzel self-assigned this Dec 18, 2024
- Updated `package.json` to replace the `test:e2e` script with a new `e2eTest.js` script for improved end-to-end testing.
- Added multiple new npm scripts for e2e testing, including cleanup, linting, unit tests, and code preparation.
- Refactored GitHub Actions CI workflow to streamline e2e testing process, replacing the previous build job with a dedicated `e2e-tests` job.
- Introduced `e2eTest.js` script to encapsulate the e2e testing logic, including cleanup and error handling.
- Enhanced `importPreferences.js` to provide more informative logging during directory creation.
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