mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Cleanup integration and unit tests (#3531)
- Make mockWindow a function and call it when needed - Change timeouts so that better error messages happen more often in integration tests Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
b546f1df72
commit
4fc340d0c6
7 files changed
+51
-57
No files matched your search
@@ -69,24 +69,20 @@ export function describeIf(condition: boolean) {
|
||||
return condition ? describe : describe.skip;
|
||||
}
|
||||
|
||||
export function setup(): Application {
|
||||
return new Application({
|
||||
path: AppPaths[process.platform], // path to electron app
|
||||
args: [],
|
||||
startTimeout: 30000,
|
||||
waitTimeout: 60000,
|
||||
env: {
|
||||
CICD: "true"
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
export const keys = {
|
||||
backspace: "\uE003"
|
||||
};
|
||||
|
||||
export async function appStart() {
|
||||
const app = setup();
|
||||
export async function setup(): Promise<Application> {
|
||||
const app = new Application({
|
||||
path: AppPaths[process.platform], // path to electron app
|
||||
args: [],
|
||||
startTimeout: 60000,
|
||||
waitTimeout: 10000,
|
||||
env: {
|
||||
CICD: "true"
|
||||
}
|
||||
});
|
||||
|
||||
await app.start();
|
||||
// Wait for splash screen to be closed
|
||||
|
||||
Reference in new issue
Block a user