-
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
base: develop
Are you sure you want to change the base?
Enhancement/update critical flows with e2e test coverage #87
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
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
Remove shortcode testing on required fields test
Add comments on test case options required for setup
Add cleanup to delete mailchimp account contacts Add default listName for 10up in support functions
Add return for more verifications
Add support for fetching more contacts Add support for fetching contacts by status Add utility function to set boolean settings
Refactor code to simplify
Skip tests that currently test bugged functionality
This test was decided to be a 'doing it wrong' site owner scenario. Any use of the plugin would require saving a list and therfore this is not a test we will be including
Status@jeffpaul and @dkotter E2E tests passing with headless Cypress 🙂 - Critical flows checklistI duplicated the critical flows checklist and added ✅, Known problems
Next Steps
After we add the environment variables for the API key I can fix any errors that come up in the CI/CD pipeline. |
Caused an error that caused session data to malfunction and fail every other test next in the cycle
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
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: