Skip to content

Commit

Permalink
feat: explicit browser profile settings for firefox (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexplischke authored Oct 1, 2024
1 parent 52efb86 commit 2bf31fa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/testcafe-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,14 @@ 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);
console.log(`Using Firefox profile: ${absolutePath}`);
testCafeBrowserName = `${testCafeBrowserName} -profile ${absolutePath}`;
}

cli.push(testCafeBrowserName);

// Add all sources files/globs
Expand Down

0 comments on commit 2bf31fa

Please sign in to comment.