Skip to content

fix: Update validateCart mutation tests - #3132

Merged
eduardoformiga merged 2 commits into
devfrom
fix/tests-after-changing-etag-cart-logic
Dec 1, 2025
Merged

eduardoformiga merged 2 commits into
devfrom
fix/tests-after-changing-etag-cart-logic

Conversation

@eduardoformiga

Copy link
Copy Markdown
Member

What's the purpose of this pull request?

Fix the API tests that have been failing since the changes in #3091 .

  • Removed redundant fetch API calls and streamlined the test setup for validateCart mutation.
  • Enhanced comments to clarify the expected behavior during valid and invalid cart scenarios.
  • Updated mock data to reflect accurate cart values and states, ensuring consistency in test results.

… accuracy

- Removed redundant fetch API calls and streamlined the test setup for `validateCart` mutation.
- Enhanced comments to clarify the expected behavior during valid and invalid cart scenarios.
- Updated mock data to reflect accurate cart values and states, ensuring consistency in test results.
@eduardoformiga
eduardoformiga requested a review from a team as a code owner November 25, 2025 15:48
@eduardoformiga
eduardoformiga requested review from lariciamota and lemagnetic and removed request for a team November 25, 2025 15:48
@codesandbox-ci

codesandbox-ci Bot commented Nov 25, 2025 •

Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@sahanljc

Copy link
Copy Markdown
Contributor

@eduardoformiga I saw that the integration test failed after the PR #3091. Is there something I can help with?

Thanks.

- Deleted the `checkoutOrderFormItemsValidFetch` mock data as it was no longer needed.
- This cleanup helps streamline the test setup for the `validateCart` mutation, improving maintainability and clarity.
@eduardoformiga
eduardoformiga merged commit c8cbb52 into dev Dec 1, 2025
@eduardoformiga
eduardoformiga deleted the fix/tests-after-changing-etag-cart-logic branch December 1, 2025 18:01
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.

3 participants