Skip to content

Commit 1c0a655

Browse files
committed
fix(e2e-tests): use wait for prompt instead
1 parent 13eec13 commit 1c0a655

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/e2e-tests/test/e2e.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ describe('e2e', function () {
3838
// --version from the cli-repl package.json and --build-info from the generated build-info.json
3939
// (if available), which should all match.
4040
const shell = this.startTestShell({ args: ['--nodb'] });
41+
await shell.waitForPrompt();
4142
const versionFromShellApi = (await shell.executeLine('version()'))
4243
.replace(/>/g, '')
4344
.trim();
@@ -50,7 +51,7 @@ describe('e2e', function () {
5051
await buildInfoShell.waitForSuccessfulExit();
5152
const versionFromBuildInfo = JSON.parse(buildInfoShell.output).version;
5253

53-
expect(versionFromShellApi).to.contain(versionFromCliFlag);
54+
expect(versionFromShellApi).to.equal(versionFromCliFlag);
5455
expect(versionFromCliFlag).to.equal(versionFromBuildInfo);
5556
});
5657
});

0 commit comments

Comments
 (0)