Skip to content

chore(EMI-2439): add submittedOrder and submittedOffer events #15485

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rquartararo
Copy link
Member

@rquartararo rquartararo commented Apr 24, 2025

The type of this PR is: Chore

This PR solves EMI-2439

Description

Adds the submittedOrder and submittedOffer events to express checkout and non-express checkout flows from artsy/cohesion#586

@rquartararo rquartararo self-assigned this Apr 24, 2025
@rquartararo rquartararo changed the title chore(EMI-2439) add submittedOrder and submittedOffer events chore(EMI-2439): add submittedOrder and submittedOffer events Apr 24, 2025
@rquartararo
Copy link
Member Author

rquartararo commented Apr 24, 2025

I'd like to add tests for the new events in the review route as there are none, but I'm having trouble running them. The file is Review.jest.enzyme.enzyme.tsx, but I'm assuming these need to be updated to just Review.jest.enzyme.tsx as well as all the other route test files.

Also the enzyme tests do lot like that we are using useAnalyticsContext() in the useOrderTracking tracking hook. Going to try to refactor.

I just realized these test files will no longer be used for the new checkout redesign, so I'm not going to put effort into adding tests/refactoring. I will just fix the currently failing tests.

Comment on lines +180 to +184
const payload: SubmittedOffer = {
action: ActionType.submittedOffer,
context_page_owner_type: OwnerType.ordersShipping,
order_id: order.internalID ?? "",
flow:
Copy link
Contributor

Choose a reason for hiding this comment

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

non-blocking: Can any of these things be inherited from some page context?

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