@@ -8,6 +8,40 @@ import store from '../app/src/redux/store';
8
8
import ComponentPanel from '../app/src/components/right/ComponentPanel' ;
9
9
import HTMLPanel from '../app/src/components/left/HTMLPanel' ;
10
10
import StateManager from '../app/src/components/StateManagement/StateManagement' ;
11
+ import CustomizationPanel from '../app/src/containers/CustomizationPanel' ;
12
+ import { BrowserRouter } from 'react-router-dom' ;
13
+
14
+
15
+ // newState.appState.components[0].children = [
16
+ // {
17
+ // type: 'HTML Element',
18
+ // typeId: 1000,
19
+ // name: 'separator',
20
+ // childId: 1000,
21
+ // style: {
22
+ // border: 'none'
23
+ // },
24
+ // attributes: {},
25
+ // events: {},
26
+ // children: [],
27
+ // stateProps: [],
28
+ // passedInProps: []
29
+ // },
30
+ // {
31
+ // type: 'HTML Element',
32
+ // typeId: 11,
33
+ // name: 'div',
34
+ // childId: 1,
35
+ // style: {},
36
+ // attributes: {},
37
+ // events: {},
38
+ // children: [],
39
+ // stateProps: [],
40
+ // passedInProps: []
41
+ // }
42
+ // ];
43
+
44
+ // newState.canvasFocus.childId = 1;
11
45
12
46
describe ( 'Bottom Panel Render Test' , ( ) => {
13
47
test ( 'should render all seven tabs' , ( ) => {
@@ -145,3 +179,23 @@ describe('State Manager', () => {
145
179
expect ( screen . getAllByRole ( 'columnheader' ) ) . toHaveLength ( 9 ) ;
146
180
} ) ;
147
181
} ) ;
182
+
183
+ describe ( 'Customization Panel' , ( ) => {
184
+ test ( 'Should render customization container with no elements added' , ( ) => {
185
+ render (
186
+ < Provider store = { store } >
187
+ < BrowserRouter >
188
+ < CustomizationPanel />
189
+ </ BrowserRouter >
190
+ </ Provider >
191
+ ) ;
192
+ console . log ( store . appState ) ;
193
+ expect ( screen . getByText ( 'Parent Component:' ) ) . toBeInTheDocument ( ) ;
194
+ expect ( screen . getByText ( 'App' ) ) . toBeInTheDocument ( ) ;
195
+ expect (
196
+ screen . getByText (
197
+ 'Drag and drop an html element (or focus one) to see what happens!'
198
+ )
199
+ ) . toBeInTheDocument ( ) ;
200
+ } ) ;
201
+ } ) ;
0 commit comments