Add BrowserStack SDK sample (Node · Jest · Playwright · Automate)#1
Closed
AakashHotchandani wants to merge 4 commits into
Closed
Add BrowserStack SDK sample (Node · Jest · Playwright · Automate)#1AakashHotchandani wants to merge 4 commits into
AakashHotchandani wants to merge 4 commits into
Conversation
…mate) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Removes the postinstall `npm update browserstack-node-sdk` (supply-chain / install-time-execution vector that bypasses lockfile pinning). The browserstack-node-sdk `latest` dependency already resolves to the current SDK on `npm install`, so the postinstall was redundant. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The BrowserStack Node SDK keys Playwright detection (__isPlaywrightInstalled) on @playwright/test and patches THAT module's BrowserType. Importing the standalone 'playwright' package left launch() unpatched. Resolves the preInitialize compareVersions crash. (Live launch interception still under review with the SDK team.) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…regression) Verified live: with @playwright/test + sdk 1.49.3 the Playwright launch is intercepted and BrowserStack sessions run (macOS/Chrome + Windows/Edge passed). sdk 1.55.x regresses the launch patcher (throws 'session_' undefined -> silent local-launch fallback). Aligned deps to the working reference (jest-js-pw): @playwright/test 1.55.0, selenium-webdriver, jest 29.7.0, matching jest.config. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Collaborator
Author
|
Superseded — the SDK sample has been pushed directly to the |
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.
Jest+Playwright sample. Uses @playwright/test and pins browserstack-node-sdk 1.49.3 (1.55.x regresses the Playwright launch patcher).
Live status: PASSED on desktop (macOS/Chrome, Windows/Edge); Android is a Playwright-on-mobile edge case.
Generated via the SDK sample-repo generator. Tracking: SDK-6221.