Skip to content

Commit cf148ae

Browse files
committed
update e2e
1 parent c019e8c commit cf148ae

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

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

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,17 @@ describe('Data Modeling tab', function () {
8484
const text = await browser.getCodemirrorEditorText(
8585
Selectors.DataModelPreview
8686
);
87-
expect(text).to.include('"test.testCollection1": ');
88-
expect(text).to.include('"test.testCollection2": ');
87+
88+
expect(text).to.include('"ns": "test.testCollection1"');
89+
expect(text).to.include('"ns": "test.testCollection2"');
8990

9091
// Apply change to the model
9192
const newModel = {
9293
type: 'SetModel',
93-
model: { schema: { coll1: {}, coll2: {} } },
94+
model: {
95+
collections: [],
96+
relationships: [],
97+
},
9498
};
9599
const newPreview = JSON.stringify(newModel.model, null, 2);
96100
await browser.setCodemirrorEditorValue(
@@ -112,8 +116,8 @@ describe('Data Modeling tab', function () {
112116
Selectors.DataModelPreview
113117
);
114118
return (
115-
textAfterUndo.includes('"test.testCollection1": ') &&
116-
textAfterUndo.includes('"test.testCollection2": ')
119+
textAfterUndo.includes('"ns": "test.testCollection1"') &&
120+
textAfterUndo.includes('"ns": "test.testCollection2"')
117121
);
118122
});
119123

0 commit comments

Comments
 (0)