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

settings.test.js will fail all test cases unless connect.test.js is run first #86

Open
1 task done
MaxwellGarceau opened this issue Dec 21, 2024 · 3 comments · May be fixed by #87
Open
1 task done

settings.test.js will fail all test cases unless connect.test.js is run first #86

MaxwellGarceau opened this issue Dec 21, 2024 · 3 comments · May be fixed by #87
Assignees
Labels
type:bug Something isn't working.
Milestone

Comments

@MaxwellGarceau
Copy link
Collaborator

Describe the bug

Problem

settings.test.js will fail all test cases unless connect.test.js is run first.

Reason

This is because the user is not logged into their Mailchimp account

Solution

The connect.test.js test suite contains the steps to connect a user with their Mailchimp account for the first time. This code can be repurposed to log a user into their Mailchimp account before any tests are run. In addition, conditional checks can be put in place in case a user is already logged in.

Steps to Reproduce

  1. Set up your local testing environment according to the E2E tests readme
  2. Run npm run cypress:open to open the Cypress UI. This will allow you to run test suites separately.
  3. Run connect.test.js Every test case will fail because the user is not logged in to their Mailchimp account.

Screenshots, screen recording, code snippet

No response

Environment information

  • Device: MacBook Air M3 2024
  • OS: 14.6

WordPress information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@MaxwellGarceau MaxwellGarceau added the type:bug Something isn't working. label Dec 21, 2024
@MaxwellGarceau MaxwellGarceau self-assigned this Dec 21, 2024
@MaxwellGarceau
Copy link
Collaborator Author

Covered in #61.

@MaxwellGarceau MaxwellGarceau linked a pull request Dec 23, 2024 that will close this issue
4 tasks
@jeffpaul
Copy link
Collaborator

@MaxwellGarceau is this resolved as part of #87?

@MaxwellGarceau
Copy link
Collaborator Author

@jeffpaul yes. We should we good to close this issue.

@jeffpaul jeffpaul added this to the 1.7.0 milestone Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants