Fix Input not working when not provided with an AsyncValidator

- Added logging by default for non-CI environments running integration
  tests

- Increasing the timeout on integration tests so that spectron is more
  likely to error out instead (should help with debugging tests)

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2021-05-07 16:14:54 -04:00
1 parent c7148bb980
commit 5c840a8af5
11 files changed
+60 -41

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ import * as utils from "../helpers/utils";
import { listHelmRepositories } from "../helpers/utils";
import { fail } from "assert";
jest.setTimeout(60000);
jest.setTimeout(60 * 1000 * 10); // 10m
// FIXME (!): improve / simplify all css-selectors + use [data-test-id="some-id"] (already used in some tests below)
describe("Lens integration tests", () => {
+1 -1
View File
@@ -12,7 +12,7 @@ import * as util from "util";
export const promiseExec = util.promisify(exec);
jest.setTimeout(60000);
jest.setTimeout(60 * 1000 * 10); // 10m
// FIXME (!): improve / simplify all css-selectors + use [data-test-id="some-id"] (already used in some tests below)
describe("Lens cluster pages", () => {
@@ -1,7 +1,7 @@
import { Application } from "spectron";
import * as utils from "../helpers/utils";
jest.setTimeout(60000);
jest.setTimeout(60 * 1000 * 10); // 10m
describe("Lens command palette", () => {
let app: Application;
+17 -7
View File
@@ -1,6 +1,7 @@
import { Application } from "spectron";
import { AppConstructorOptions, Application } from "spectron";
import * as util from "util";
import { exec } from "child_process";
import { isCI } from "../../src/common/vars";
const AppPaths: Partial<Record<NodeJS.Platform, string>> = {
"win32": "./dist/win-unpacked/OpenLens.exe",
@@ -50,15 +51,24 @@ export function describeIf(condition: boolean) {
}
export function setup(): Application {
return new Application({
const args: AppConstructorOptions = {
path: AppPaths[process.platform], // path to electron app
args: [],
startTimeout: 30000,
waitTimeout: 60000,
startTimeout: 60000,
waitTimeout: 30000,
env: {
CICD: "true"
}
});
CICD: "true",
},
chromeDriverLogPath: "./logs/chromeDriver",
webdriverLogPath: "./logs/webdriver",
};
if (!isCI) {
args.chromeDriverLogPath = "./logs/chromeDriver";
args.webdriverLogPath = "./logs/webdriver";
}
return new Application(args);
}
export const keys = {