Skip to content

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

Closed
@MaxwellGarceau

Description

@MaxwellGarceau

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

Metadata

Metadata

Labels

type:bugSomething isn't working.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions