Skip to content

Commit 6f45c72

Browse files
committed
feat: enhance BrowserStack SDK setup instructions and add Playwright support for JUnit
1 parent 6d9fae1 commit 6f45c72

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/tools/bstack-sdk.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ export async function bootstrapProjectWithSDK({
6666
};
6767
}
6868

69-
let fullInstructions = "";
69+
let fullInstructions =`⚠️ IMPORTANT: DO NOT SKIP ANY STEP
70+
All the setup steps described in this file MUST be executed regardless of any existing configuration or setup.
71+
This ensures proper BrowserStack SDK setup.`;
72+
7073
// Add language-dependent prefix command
7174
fullInstructions += getSDKPrefixCommand(
7275
detectedLanguage,

src/tools/sdk-utils/constants.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,10 @@ export const SUPPORTED_CONFIGURATIONS: ConfigMapping = {
413413
},
414414
},
415415
java: {
416-
playwright: {},
416+
playwright: {
417+
junit4: { instructions: javaInstructions },
418+
junit5: { instructions: javaInstructions },
419+
},
417420
selenium: {
418421
testng: { instructions: javaInstructions },
419422
cucumber: { instructions: javaInstructions },

0 commit comments

Comments
 (0)