Skip to content

Commit

Permalink
feat: explicit browser profile settings for firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
alexplischke committed Sep 30, 2024
1 parent 52efb86 commit 02c8c08
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/testcafe-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,13 @@ export function buildCommandLine(
const browserArgs = suite.browserArgs.join(' ');
testCafeBrowserName = testCafeBrowserName + ' ' + browserArgs;
}

const browserProfile = process.env.SAUCE_FIREFOX_BROWSER_PROFILE;
if (browserProfile) {
const absolutePath = path.join(projectPath, browserProfile);
testCafeBrowserName = `${testCafeBrowserName} -profile ${absolutePath}`;
}

cli.push(testCafeBrowserName);

// Add all sources files/globs
Expand Down

0 comments on commit 02c8c08

Please sign in to comment.