Skip to content

Commit a89c252

Browse files
authored
remove the first run test (untestable for now) (#2910)
1 parent d21da72 commit a89c252

File tree

1 file changed

+4
-39
lines changed

1 file changed

+4
-39
lines changed

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

Lines changed: 4 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -18,42 +18,10 @@ describe('Time to first query', function () {
1818
}
1919
});
2020

21-
it('can open compass, connect to a database and run a query on a collection (first run)', async function () {
22-
// start compass inside the test so that the time is measured together
23-
compass = await beforeTests({ firstRun: true });
24-
25-
const { browser } = compass;
26-
27-
await browser.connectWithConnectionString('mongodb://localhost:27018/test');
28-
29-
await browser.navigateToCollectionTab('test', 'numbers', 'Documents');
30-
31-
// search for the document with id == 42 and wait for just one result to appear
32-
const aceCommentElement = await browser.$(
33-
'#query-bar-option-input-filter .ace_scroller'
34-
);
35-
await aceCommentElement.click();
36-
37-
await browser.keys('{ i: 42 }');
38-
const filterButtonElement = await browser.$(
39-
Selectors.queryBarApplyFilterButton('Documents')
40-
);
41-
await filterButtonElement.click();
42-
await browser.waitUntil(async () => {
43-
// we start off with 20 results (assuming no filter) and we expect to
44-
// have just one once the filter finishes
45-
const result = await browser.$$('.document-list .document');
46-
return result.length === 1;
47-
});
48-
49-
const documentElementValue = await browser.$(
50-
'.document-list .document .element-value-is-int32'
51-
);
52-
const text = await documentElementValue.getText();
53-
expect(text).to.equal('42');
54-
});
21+
it('can open compass, connect to a database and run a query on a collection (new version)', async function () {
22+
// force the tour modal which would normally only appear for new versions
23+
process.env.SHOW_TOUR = 'true';
5524

56-
it('can open compass, connect to a database and run a query on a collection (second run onwards)', async function () {
5725
// start compass inside the test so that the time is measured together
5826
compass = await beforeTests();
5927

@@ -88,10 +56,7 @@ describe('Time to first query', function () {
8856
expect(text).to.equal('42');
8957
});
9058

91-
it('can open compass, connect to a database and run a query on a collection (new version)', async function () {
92-
// force the tour modal which would normally only appear for new versions
93-
process.env.SHOW_TOUR = 'true';
94-
59+
it('can open compass, connect to a database and run a query on a collection (second run onwards)', async function () {
9560
// start compass inside the test so that the time is measured together
9661
compass = await beforeTests();
9762

0 commit comments

Comments
 (0)