✅ [RUM-17233] Add Shopify checkout views and actions e2e test - #4941
Open
lierniel wants to merge 4 commits into
Open
✅ [RUM-17233] Add Shopify checkout views and actions e2e test#4941lierniel wants to merge 4 commits into
lierniel wants to merge 4 commits into
Conversation
Bundles Sizes Evolution
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
RUM-17233: cover the Shopify integration with e2e tests. The dedicated
browser-rum-shopifybundle (#4878) explicitly scoped e2e tests out; this closes that gap by exercising the full checkout flow against a real Shopify dev store.Changes
buildShopifyUrl/unlockShopifyStorePassword(dev store password gate),withShopifyApp()/shopifySetup(intercepts the CDN bundle request and injects RUM configuration into both the storefront's Theme Liquid snippet and the checkout's Custom Pixel sandbox), and agetShopifyStorePassword()secret accessor.shopify.scenario.ts, covering the full flow: storefront → product page → add to cart → checkout → thank-you page → back to storefront. Asserts:browser-rum-shopify)test.slow(), since this hits a live dev store that's sensitive to request volume (Cloudflare bot protection, checkout rate limiting) and the full flow runs close to the default test timeout.Test instructions
To run locally:
Or trigger the according pipeline on the gitlab: https://gitlab.ddbuild.io/DataDog/browser-sdk/-/pipelines
Chromium only (
--disable-web-securityis required to bypass the dev store's CSP/CORS restrictions). Runs against the livecustom-pixel-e2e.myshopify.comdev store, so repeated back-to-back local runs may need a few minutes' gap to avoid tripping Cloudflare's verification wall.Checklist