Skip to content

Conversation

@ZSnake
Copy link
Contributor

@ZSnake ZSnake commented May 2, 2025

This PR modifies the expected call signature for the custom onAddToCart callback:

(event, item) => void   -->   (event, item, selectedVariation?) => void

Since this modification only adds an optional parameter, it is a backwards compatible change.

@ZSnake ZSnake requested a review from a team as a code owner May 2, 2025 23:08
expect(contextOnAddToCart).toHaveBeenCalledTimes(1);
});

test('Should run custom onAddToCart handler if overridden at the CioPlp provider level', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now we have two tests with the same description. Would it be better if we merge both tests into one test?

"Should run custom onAddToCart handler if overridden at the CioPlp provider level"

Copy link
Contributor

@mocca102 mocca102 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Mudaafi Mudaafi requested a review from esezen May 6, 2025 16:27
@Mudaafi Mudaafi merged commit fec6406 into main May 6, 2025
9 of 11 checks passed
@Mudaafi Mudaafi deleted the ci-4410-os-plp-ui-incorrect-variation-id-sent-in-onaddtocart branch May 6, 2025 20:39
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.

5 participants