mirror of
https://github.com/element-hq/element-desktop
synced 2025-04-21 17:13:57 +02:00
Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
c956c87337
commit
8919eef7c5
@ -46,8 +46,8 @@ test.describe("App launch", () => {
|
|||||||
).resolves.toBeTruthy();
|
).resolves.toBeTruthy();
|
||||||
});
|
});
|
||||||
|
|
||||||
test("should launch and render the welcome view successfully and support keytar", async ({ page }) => {
|
test("should launch and render the welcome view successfully and support safeStorage", async ({ page }) => {
|
||||||
// test.skip(platform() === "linux", "This test does not yet support Linux");
|
test.skip(platform() === "linux", "This test does not yet support Linux");
|
||||||
|
|
||||||
await expect(
|
await expect(
|
||||||
page.evaluate<string | null>(async () => {
|
page.evaluate<string | null>(async () => {
|
||||||
@ -56,6 +56,8 @@ test.describe("App launch", () => {
|
|||||||
).resolves.not.toBeNull();
|
).resolves.not.toBeNull();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// TODO test keytar migration
|
||||||
|
|
||||||
test.describe("--no-update", () => {
|
test.describe("--no-update", () => {
|
||||||
test.use({
|
test.use({
|
||||||
extraArgs: ["--no-update"],
|
extraArgs: ["--no-update"],
|
||||||
|
@ -67,7 +67,7 @@ export const test = base.extend<Fixtures>({
|
|||||||
await fs.rm(tmpDir, { recursive: true });
|
await fs.rm(tmpDir, { recursive: true });
|
||||||
},
|
},
|
||||||
app: async ({ tmpDir, extraEnv, extraArgs, stdout, stderr }, use) => {
|
app: async ({ tmpDir, extraEnv, extraArgs, stdout, stderr }, use) => {
|
||||||
const args = ["--profile-dir", tmpDir, '--password-store="basic"'];
|
const args = ["--profile-dir", tmpDir];
|
||||||
|
|
||||||
const executablePath = process.env["ELEMENT_DESKTOP_EXECUTABLE"];
|
const executablePath = process.env["ELEMENT_DESKTOP_EXECUTABLE"];
|
||||||
if (!executablePath) {
|
if (!executablePath) {
|
||||||
|
@ -15,7 +15,7 @@ limitations under the License.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import ElectronStore from "electron-store";
|
import ElectronStore from "electron-store";
|
||||||
import * as keytar from "keytar-forked";
|
import keytar from "keytar-forked";
|
||||||
import { app, safeStorage } from "electron";
|
import { app, safeStorage } from "electron";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user