File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
packages/compass-e2e-tests/tests Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments