Change e2e timeouts

- Relates #401
This commit is contained in:
Janne Valkealahti
2022-05-08 14:41:59 +01:00
parent c6a8e1c65c
commit 8af3bd892e
2 changed files with 4 additions and 2 deletions

View File

@@ -18,4 +18,4 @@ export const nativeCommand = cliPath;
export const jarOptions = ['-jar', jarPath];
export const waitForExpectDefaultTimeout = 30000;
export const waitForExpectDefaultInterval = 2000;
export const testTimeout = 100000;
export const testTimeout = 120000;

View File

@@ -26,10 +26,12 @@ describe('flow commands', () => {
const flowConditionalField2SkipsFields1 = async (cli: Cli) => {
cli.run();
// windows on gh actions may take quite a bit of time to start
// so use long timeout
await waitForExpect(async () => {
const screen = cli.screen();
expect(screen).toEqual(expect.arrayContaining([expect.stringContaining('Single1')]));
});
}, 60000);
await cli.keyDown();
await waitForExpect(async () => {