Skip to content

Conversation

@gregor-RW
Copy link
Contributor

Running the tests on a different CI with smaller resources, I've noticed a few issues around:

  • sessions being lost (from cypress doc: Cypress automatically clears all cookies before each new test starts by default.)
  • multiple addresses being added while running the whole batch
  • some code cleanup to make sure to use proper selectors where possible
  • added region/state selectors for the address

1. Make the login method bulletproof so it tries to login only if needed
2. Use selectors to type in the data
3. Add state/region since it was missing
4. Add deleteAddress to be used in the account tests
1. Refactor account tests so login() gets called beforeEach
2. move Address create/delete to each test to have a test independency but still keep the tests focused on only what is being tested
3. Add intercept for checout part so wait is independent of the CI system
4. Remove all Log-out steps since they are not part of the tests
@gregor-RW
Copy link
Contributor Author

@peterjaap I modified the details for Luma and for some reason Hyva is failing. Since I don't have access to Hyva to fix it, I can't proceed here. Maybe the whole refactor doesn't make sense to you, so feel free to reject the whole thing.

@Vinai
Copy link
Collaborator

Vinai commented Oct 2, 2022

I don't think the luma failures are related to these changes.

@gregor-RW
Copy link
Contributor Author

@Vinai I'm only seeing Hyva failures, not Luma. Am I missing something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants