Skip to content

Commit 09d31cf

Browse files
committed
Merge remote-tracking branch 'origin/main' into 1.31-releases
2 parents d59f5f1 + ae4bd74 commit 09d31cf

File tree

6 files changed

+25
-13
lines changed

6 files changed

+25
-13
lines changed

.evergreen.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -619,11 +619,6 @@ tasks:
619619

620620
- name: e2e-coverage
621621
tags: ['run-on-pr']
622-
commands:
623-
- func: test-packaged-app
624-
vars:
625-
compass_distribution: compass
626-
debug: 'compass-e2e-tests*,electron*,hadron*,mongo*'
627622
commands:
628623
- func: prepare
629624
- func: install

packages/compass-e2e-tests/tests/collection-documents-tab.test.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,19 @@ async function navigateToTab(browser: CompassBrowser, tabName: string) {
6060
await tabSelectedSelectorElement.waitForDisplayed();
6161
}
6262

63+
async function waitForJSON(browser: CompassBrowser, element: Element<'async'>) {
64+
// Sometimes the line numbers end up in the text for some reason. Probably
65+
// because we get the text before the component is properly initialised.
66+
await browser.waitUntil(async () => {
67+
const text = await element.getText();
68+
const isJSON = text.replace(/\s+/g, ' ').startsWith('{');
69+
if (!isJSON) {
70+
console.log({ text });
71+
}
72+
return isJSON;
73+
});
74+
}
75+
6376
describe('Collection documents tab', function () {
6477
let compass: Compass;
6578
let browser: CompassBrowser;
@@ -338,6 +351,9 @@ FindIterable<Document> result = collection.find(filter);`);
338351

339352
const document = await browser.$(Selectors.DocumentJSONEntry);
340353
await document.waitForDisplayed();
354+
355+
await waitForJSON(browser, document);
356+
341357
const json = await document.getText();
342358
expect(json.replace(/\s+/g, ' ')).to.match(
343359
/^\{ "_id": \{ "\$oid": "[a-f0-9]{24}" \}, "i": 32, "j": 0 \}$/
@@ -365,6 +381,9 @@ FindIterable<Document> result = collection.find(filter);`);
365381

366382
const modifiedDocument = await browser.$(Selectors.DocumentJSONEntry);
367383
await modifiedDocument.waitForDisplayed();
384+
385+
await waitForJSON(browser, modifiedDocument);
386+
368387
expect((await modifiedDocument.getText()).replace(/\s+/g, ' ')).to.match(
369388
/^\{ "_id": \{ "\$oid": "[a-f0-9]{24}" \}, "i": 32, "j": 1234 \}$/
370389
);

packages/compass-e2e-tests/tests/logging.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ describe('Logging and Telemetry integration', function () {
1111

1212
before(async function () {
1313
telemetry = await startTelemetryServer();
14+
process.env.SHOW_TOUR = 'true'; // make this work the same in dev and when releasing
1415
const compass = await beforeTests({ firstRun: true });
1516
const { browser } = compass;
1617
try {
@@ -26,6 +27,7 @@ describe('Logging and Telemetry integration', function () {
2627
} finally {
2728
await afterTests(compass);
2829
await telemetry.stop();
30+
delete process.env.SHOW_TOUR;
2931
}
3032

3133
logs = compass.logs;

packages/compass-e2e-tests/tests/shell.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { Telemetry } from '../helpers/telemetry';
44
import { beforeTests, afterTests, afterTest } from '../helpers/compass';
55
import type { Compass } from '../helpers/compass';
66

7-
describe('Shell', function () {
7+
describe.skip('Shell', function () {
88
let compass: Compass;
99
let browser: CompassBrowser;
1010
let telemetry: Telemetry;

packages/connection-form/src/components/advanced-options-tabs/advanced-tab/url-options-table.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ const optionNameCellStyles = css({
2929
width: spacing[5] * 9,
3030
});
3131

32-
const optionValueCellStyles = css({
33-
// width: '30%',
34-
});
35-
3632
const optionValueCellContentStyles = css({
3733
display: 'flex',
3834
flexDirection: 'row',
@@ -41,7 +37,7 @@ const optionValueCellContentStyles = css({
4137
});
4238

4339
const valueInputStyles = css({
44-
maxWidth: spacing[7],
40+
width: spacing[7],
4541
});
4642

4743
const deleteOptionButtonStyle = css({
@@ -193,7 +189,7 @@ function UrlOptionsTable({
193189
))}
194190
</Select>
195191
</Cell>
196-
<Cell className={optionValueCellStyles}>
192+
<Cell>
197193
<div className={optionValueCellContentStyles}>
198194
<TextInput
199195
onChange={(event: ChangeEvent<HTMLInputElement>) => {

packages/connection-form/src/components/advanced-options-tabs/advanced-tab/url-options.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import UrlOptionsTable from './url-options-table';
1414

1515
const urlOptionsContainerStyles = css({
1616
marginTop: spacing[3],
17-
width: '70%',
17+
width: spacing[6] * 7,
1818
});
1919

2020
const urlOptionsTableDescriptionStyles = css({

0 commit comments

Comments
 (0)