Enhancement/update critical flows with e2e test coverage#87
Merged
vikrampm1 merged 104 commits intoApr 7, 2025
Merged
Conversation
Allow settings.test.js (and other test files) to be run independently of connect.test.js. This fixes an error where test cases would fail due to the user not being logged into their Mailchimp account.
Move block and short code urls into fixtures
1 task
4 tasks
Highlights - Add a FE Mailchimp client to Cypress tests to verify Mailchimp account interactions. Ensures successful form submission and full integration testing. - Use .env.test for env variables - Add health check for tests if Mailchimp client is unable to make requests - Modularize Cypress commands‼️ Environment changes needed‼️ - Need to generate an API key for the test Mailchimp user in the CI/CD pipeline. - Need to attach that API key to CYPRESS_MAILCHIMP_API_KEY as a Github secret - Need to attach the server prefix to CYPRESS_MAILCHIMP_API_SERVER_PREFIX as a Github secret Commits * Add Mailchimp API package * Add cypress-dotenv * Add Mailchimp API client to Cypress Necessary to interact with the test user account to verify contacts, make deletions, etc. * Update documentation for env setup * Remove outdated E2E notes * Remove log to fix bug. Skip unfinished tests. * Remove outdated readme note * Add test to verify lists in WP admin match lists in Mailchimp account * Add assertion that contacts in Mailchimp account match email submitted * Simplify mailchimp commands * Add mailchimp commands to command folder * Organize commands into modular files * Rename mailchimpApiConfig to more clearly state purpose * Fix grammar mistake * Add scaffolding for gmail api * Switch to gabi-script for FE requests * Update .env.test.sample with example of google creds * Remove gmail api client Too complicated to set up for our purposes. We're better off with Mailhog * Remove gapi-script
dkotter
reviewed
Jan 22, 2025
dkotter
reviewed
Jan 22, 2025
dkotter
reviewed
Jan 22, 2025
dkotter
reviewed
Jan 22, 2025
dkotter
reviewed
Jan 22, 2025
Co-authored-by: Darin Kotter <darin.kotter@gmail.com>
Co-authored-by: Darin Kotter <darin.kotter@gmail.com>
Co-authored-by: Darin Kotter <darin.kotter@gmail.com>
Co-authored-by: Darin Kotter <darin.kotter@gmail.com>
Contributor
Author
|
Quick note regarding merge conflicts on this ticket. I recommend waiting until the rest of the open PRs are merged into Since the changes are almost entirely within the Cypress E2E test suite I estimate that there will only be small conflicts. |
…ment/update-critical-flows-with-e2e-test-coverage
Collaborator
|
@dkotter This is ready for the next steps. Notes:
Thanks |
dkotter
approved these changes
Feb 27, 2025
…ment/update-critical-flows-with-e2e-test-coverage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description of the Change
Update E2E Cypress tests to cover all critical testing flows.
Enhancement/add mailchimp api client - #99
.env.testfor env variablesCloses #61
Closes #86
How to test the Change
Follow the E2E testing instructions in the readme to run the Cypress tests. In addition, these tests should run automatically as part of the projects CI/CD flow.
Changelog Entry
Credits
Props @MaxwellGarceau
Checklist: