mirror of
https://github.com/element-hq/element-desktop
synced 2025-04-21 09:03:56 +02:00
Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
08bf85faed
commit
d4d3b5ad07
@ -51,11 +51,10 @@ test.describe("App launch", () => {
|
||||
});
|
||||
|
||||
test.describe("safeStorage", () => {
|
||||
test.use({
|
||||
extraArgs: ['--password-store="basic"'],
|
||||
});
|
||||
|
||||
test.skip(platform() === "darwin", "The macOS runner's keychain is not available");
|
||||
if (process.env.GITHUB_ACTIONS) {
|
||||
test.skip(platform() === "darwin", "The macOS runner's keychain is not available");
|
||||
test.skip(platform() === "linux", "The Linux runner's dbus is not available");
|
||||
}
|
||||
|
||||
const userId = "@user:server";
|
||||
const deviceId = "ABCDEF";
|
||||
@ -70,7 +69,7 @@ test.describe("App launch", () => {
|
||||
});
|
||||
|
||||
test.describe("migrate from keytar", () => {
|
||||
// test.skip(platform() === "win32", "Windows requires authentication to write to the store");
|
||||
test.skip(!!process.env.GITHUB_ACTIONS, "Does not work in CI");
|
||||
|
||||
const pickleKey = "DEADBEEF1234";
|
||||
|
||||
|
@ -366,25 +366,6 @@ app.enableSandbox();
|
||||
// We disable media controls here. We do this because calls use audio and video elements and they sometimes capture the media keys. See https://github.com/vector-im/element-web/issues/15704
|
||||
app.commandLine.appendSwitch("disable-features", "HardwareMediaKeyHandling,MediaSessionService");
|
||||
|
||||
const SUPPORTED_ELECTRON_SWITCHES: string[] = [];
|
||||
|
||||
if (process.platform === "linux") {
|
||||
SUPPORTED_ELECTRON_SWITCHES.push("password-store");
|
||||
if (process.env.CI) {
|
||||
safeStorage.setUsePlainTextEncryption(true);
|
||||
}
|
||||
}
|
||||
for (const switchKey of SUPPORTED_ELECTRON_SWITCHES) {
|
||||
if (switchKey in argv) {
|
||||
const switchValue = argv[switchKey];
|
||||
if (switchValue === true) {
|
||||
app.commandLine.appendSwitch(switchKey);
|
||||
} else {
|
||||
app.commandLine.appendSwitch(switchKey, switchValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Disable hardware acceleration if the setting has been set.
|
||||
if (global.store.get("disableHardwareAcceleration") === true) {
|
||||
console.log("Disabling hardware acceleration.");
|
||||
|
Loading…
x
Reference in New Issue
Block a user