File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
packages/compass-data-modeling/src/components Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import NewDiagramForm from './new-diagram-form';
1010import { changeName , createNewDiagram } from '../store/generate-diagram-wizard' ;
1111import { renderWithStore } from '../../test/setup-store' ;
1212import type { DataModelingStore } from '../../test/setup-store' ;
13+ import { createSandboxFromDefaultPreferences } from 'compass-preferences-model' ;
1314
1415function getComboboxByTestId ( testId : string ) {
1516 return within ( screen . getByTestId ( testId ) ) . getByRole ( 'combobox' ) ;
@@ -282,7 +283,12 @@ describe('NewDiagramForm', function () {
282283
283284 context ( 'select-collections step' , function ( ) {
284285 it ( 'shows list of collections' , async function ( ) {
285- const { store } = renderWithStore ( < NewDiagramForm /> ) ;
286+ const preferences = await createSandboxFromDefaultPreferences ( ) ;
287+ const { store } = renderWithStore ( < NewDiagramForm /> , {
288+ services : {
289+ preferences,
290+ } ,
291+ } ) ;
286292
287293 {
288294 // Navigate to connections step
You can’t perform that action at this time.
0 commit comments