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

+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 = {