Skip to content

Commit 73976e8

Browse files
committed
fixup: tests
1 parent e8c49a9 commit 73976e8

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
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-e2e-tests/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
"mongodb-build-info": "^1.7.2",
6363
"mongodb-connection-string-url": "^3.0.1",
6464
"mongodb-log-writer": "^2.3.4",
65+
"mongodb-ns": "^2.4.2",
6566
"mongodb-runner": "^5.8.0",
6667
"node-fetch": "^2.7.0",
6768
"nyc": "^15.1.0",

packages/compass-e2e-tests/tests/data-modeling-tab.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import {
1818
} from '../helpers/downloads';
1919
import { readFileSync } from 'fs';
2020
import { recognize } from 'tesseract.js';
21+
import toNS from 'mongodb-ns';
2122
import path from 'path';
2223
import os from 'os';
2324
import fs from 'fs/promises';
@@ -110,7 +111,7 @@ async function selectCollectionOnTheDiagram(
110111
const collectionName = await browser.getInputByLabel(
111112
drawer.$(Selectors.DataModelNameInput)
112113
);
113-
expect(await collectionName.getValue()).to.equal(ns);
114+
expect(await collectionName.getValue()).to.equal(toNS(ns).collection);
114115
}
115116

116117
async function getDiagramNodes(

0 commit comments

Comments
 (0)