Fix assert in flow e2e test

- Fix assert by checking plain ">" if env CI variable is not set.
- Fixes #576
This commit is contained in:
Janne Valkealahti
2022-11-30 17:27:48 +00:00
parent 0899d414de
commit b555148ce9

View File

@@ -36,7 +36,7 @@ describe('flow commands', () => {
await cli.keyDown();
await waitForExpect(async () => {
const screen = cli.screen();
expect(screen).toEqual(expect.arrayContaining([expect.stringContaining('> Field2')]));
expect(screen).toEqual(expect.arrayContaining([expect.stringMatching(/[>] Field2/)]));
});
await cli.keyEnter();