Set native browser language for Linux locale tests

This commit is contained in:
Anarios
2026-10-21 13:13:31 +02:00
parent 704cc21874
commit d5103a3e7f
@@ -100,7 +100,11 @@ for (const { locale, language, direction } of [
const apiServer = await startHermeticApiServer();
const browserType = {
launchPersistentContext: (profile, options) =>
chromium.launchPersistentContext(profile, { ...options, args: [...options.args, `--lang=${language}`] }),
chromium.launchPersistentContext(profile, {
...options,
args: [...options.args, `--lang=${language}`],
...(process.platform === "linux" ? { env: { ...process.env, ...options.env, LANGUAGE: language } } : {}),
}),
};
const adapter = new HermeticExtensionArtifactAdapter({
apiServer,