-
Notifications
You must be signed in to change notification settings - Fork 0
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
Enhancement/update critical flows with e2e test coverage #87
Draft
MaxwellGarceau
wants to merge
46
commits into
develop
Choose a base branch
from
enhancement/update-critical-flows-with-e2e-test-coverage
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Enhancement/update critical flows with e2e test coverage #87
MaxwellGarceau
wants to merge
46
commits into
develop
from
enhancement/update-critical-flows-with-e2e-test-coverage
Conversation
This file contains 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
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
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.test
for env variablesCloses #61 #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: