Skip to content

Commit b63bfa2

Browse files
authored
chore(e2e): reuse the existing connection for the second test (#6626)
* reuse the existing connection for the second test * stick to the old for compass web
1 parent bd38dd8 commit b63bfa2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/compass-e2e-tests/tests/time-to-first-query.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
cleanup,
55
screenshotIfFailed,
66
DEFAULT_CONNECTION_NAME_1,
7+
TEST_COMPASS_WEB,
78
} from '../helpers/compass';
89
import type { Compass } from '../helpers/compass';
910
import { createNumbersCollection } from '../helpers/insert-data';
@@ -57,7 +58,11 @@ describe('Time to first query', function () {
5758

5859
const { browser } = compass;
5960

60-
await browser.connectWithConnectionString();
61+
if (TEST_COMPASS_WEB) {
62+
await browser.connectWithConnectionString();
63+
} else {
64+
await browser.connectByName(DEFAULT_CONNECTION_NAME_1);
65+
}
6166

6267
await browser.navigateToCollectionTab(
6368
DEFAULT_CONNECTION_NAME_1,

0 commit comments

Comments
 (0)