1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Try new timeouts

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2021-06-10 19:47:04 -04:00
parent 952b8516fb
commit 15e8bf8e44
4 changed files with 9 additions and 13 deletions

View File

@ -30,7 +30,7 @@ import * as utils from "../helpers/utils";
import { listHelmRepositories } from "../helpers/utils";
import { fail } from "assert";
jest.setTimeout(5 * 60 * 1000); // 5 minutes so that we can get better errors from spectron
jest.setTimeout(2 * 60 * 1000); // 2 minutes so that we can get better errors from spectron
// FIXME (!): improve / simplify all css-selectors + use [data-test-id="some-id"] (already used in some tests below)
describe("Lens integration tests", () => {

View File

@ -33,7 +33,7 @@ import * as util from "util";
export const promiseExec = util.promisify(exec);
jest.setTimeout(5 * 60 * 1000); // 5 minutes so that we can get better errors from spectron
jest.setTimeout(2 * 60 * 1000); // 2 minutes so that we can get better errors from spectron
// FIXME (!): improve / simplify all css-selectors + use [data-test-id="some-id"] (already used in some tests below)
describe("Lens cluster pages", () => {

View File

@ -22,7 +22,7 @@
import type { Application } from "spectron";
import * as utils from "../helpers/utils";
jest.setTimeout(5 * 60 * 1000); // 5 minutes so that we can get better errors from spectron
jest.setTimeout(2 * 60 * 1000); // 2 minutes so that we can get better errors from spectron
describe("Lens command palette", () => {
let app: Application;

View File

@ -69,8 +69,12 @@ export function describeIf(condition: boolean) {
return condition ? describe : describe.skip;
}
export function setup(): Application {
return new Application({
export const keys = {
backspace: "\uE003"
};
export async function appStart() {
const app = new Application({
path: AppPaths[process.platform], // path to electron app
args: [],
startTimeout: 60000,
@ -79,14 +83,6 @@ export function setup(): Application {
CICD: "true"
}
});
}
export const keys = {
backspace: "\uE003"
};
export async function appStart() {
const app = setup();
await app.start();
// Wait for splash screen to be closed