Skip to content

Commit fae6fbe

Browse files
committed
fix: tests and check
1 parent aaeb53c commit fae6fbe

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

package-lock.json

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/compass-connections-navigation/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,12 @@
4949
"reformat": "npm run eslint . -- --fix && npm run prettier -- --write ."
5050
},
5151
"dependencies": {
52-
"@mongodb-js/compass-connections": "^1.64.0",
5352
"@mongodb-js/compass-components": "^1.42.0",
54-
"@mongodb-js/connection-info": "^0.15.5",
55-
"@mongodb-js/connection-form": "^1.56.0",
53+
"@mongodb-js/compass-connections": "^1.64.0",
54+
"@mongodb-js/compass-context-menu": "^0.2.0",
5655
"@mongodb-js/compass-workspaces": "^0.45.0",
56+
"@mongodb-js/connection-form": "^1.56.0",
57+
"@mongodb-js/connection-info": "^0.15.5",
5758
"compass-preferences-model": "^2.44.0",
5859
"mongodb-build-info": "^1.7.2",
5960
"react": "^17.0.2",

packages/compass-connections-navigation/src/connections-navigation-tree.spec.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ describe('ConnectionsNavigationTree', function () {
412412
expect(screen.getByText('View performance metrics')).to.be.visible;
413413
expect(screen.getByText('Show connection info')).to.be.visible;
414414
expect(screen.getByText('Copy connection string')).to.be.visible;
415-
expect(screen.getByText('Unfavorite')).to.be.visible;
415+
expect(screen.getByText('Unfavorite connection')).to.be.visible;
416416
expect(screen.getByText('Disconnect')).to.be.visible;
417417
});
418418

@@ -587,7 +587,7 @@ describe('ConnectionsNavigationTree', function () {
587587
expect(screen.getByText('View performance metrics')).to.be.visible;
588588
expect(screen.getByText('Show connection info')).to.be.visible;
589589
expect(screen.getByText('Copy connection string')).to.be.visible;
590-
expect(screen.getByText('Unfavorite')).to.be.visible;
590+
expect(screen.getByText('Unfavorite connection')).to.be.visible;
591591
expect(screen.getByText('Disconnect')).to.be.visible;
592592
});
593593

@@ -983,7 +983,7 @@ describe('ConnectionsNavigationTree', function () {
983983
await assertContextMenuItems(connectionElement, [
984984
'Edit connection',
985985
'Copy connection string',
986-
'Unfavorite',
986+
'Unfavorite connection',
987987
'Duplicate connection',
988988
'Remove connection',
989989
{ separator: true },

packages/compass-sidebar/src/components/multiple-connections/sidebar.spec.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ describe('Multiple Connections Sidebar Component', function () {
355355
expect(copyAction).to.be.visible;
356356

357357
// Unfavorite because the connection is already a favorite
358-
const favAction = screen.getByText('Unfavorite');
358+
const favAction = screen.getByText('Unfavorite connection');
359359
expect(favAction).to.be.visible;
360360

361361
const duplicateAction = screen.getByText('Duplicate connection');
@@ -437,7 +437,7 @@ describe('Multiple Connections Sidebar Component', function () {
437437

438438
expect(screen.getByText('Copy connection string')).to.be.visible;
439439
// because it is already a favorite
440-
expect(screen.getByText('Unfavorite')).to.be.visible;
440+
expect(screen.getByText('Unfavorite connection')).to.be.visible;
441441
expect(screen.getByText('Duplicate connection')).to.be.visible;
442442
expect(screen.getByText('Remove connection')).to.be.visible;
443443
});
@@ -635,7 +635,7 @@ describe('Multiple Connections Sidebar Component', function () {
635635
within(connectionItem).getByLabelText('Show actions')
636636
);
637637

638-
userEvent.click(screen.getByText('Unfavorite'));
638+
userEvent.click(screen.getByText('Unfavorite connection'));
639639

640640
await waitFor(() => {
641641
expect(

0 commit comments

Comments
 (0)