11// @vitest -environment jsdom
22
3- import { describe , it , expect } from 'vitest'
3+ import { describe , it , expect } from 'vitest' ;
44import {
55 fireEvent ,
66 render ,
@@ -26,19 +26,18 @@ import store from '../app/src/redux/store';
2626
2727describe ( 'Bottom Panel Render test' , ( ) => {
2828 it ( 'should render all six tabs' , ( ) => {
29- const { unmount } = render (
29+ const { unmount } = render (
3030 < Provider store = { store } >
3131 < BottomTabs />
3232 </ Provider >
3333 ) ;
34- expect ( screen . getAllByRole ( 'tab' ) ) . toHaveLength ( 8 ) ;
34+ expect ( screen . getAllByRole ( 'tab' ) ) . toHaveLength ( 7 ) ;
3535 expect ( screen . getByText ( 'Component Tree' ) ) . toBeDefined ( ) ;
3636 expect ( screen . getByText ( 'Creation Panel' ) ) . toBeDefined ( ) ;
3737 expect ( screen . getByText ( 'Customization' ) ) . toBeDefined ( ) ;
3838 expect ( screen . getByText ( 'CSS Editor' ) ) . toBeDefined ( ) ;
3939 expect ( screen . getByText ( 'Context Manager' ) ) . toBeDefined ( ) ;
4040 expect ( screen . getByText ( 'State Manager' ) ) . toBeDefined ( ) ;
41- expect ( screen . getByText ( 'MUI Props' ) ) . toBeDefined ( ) ;
4241 unmount ( ) ;
4342 } ) ;
4443} ) ;
@@ -54,9 +53,7 @@ describe('Creation Panel', () => {
5453 fireEvent . click ( screen . getByText ( 'Create' ) ) ;
5554
5655 await waitFor ( ( ) => {
57- expect (
58- screen . getByText ( 'Component name cannot be blank.' )
59- ) . toBeDefined ( ) ;
56+ expect ( screen . getByText ( 'Component name cannot be blank.' ) ) . toBeDefined ( ) ;
6057 } ) ;
6158 unmount ( ) ;
6259 } ) ;
@@ -83,7 +80,7 @@ describe('Creation Panel', () => {
8380 } ) ;
8481 unmount ( ) ;
8582 } ) ;
86- } )
83+ } ) ;
8784
8885describe ( 'HTML Panel' , ( ) => {
8986 it ( 'should invalidate empty field in HTML Tag tag' , async ( ) => {
@@ -211,10 +208,14 @@ describe('Customization Panel', () => {
211208 ) ;
212209 expect ( screen . getByText ( 'Parent Component:' ) ) . toBeDefined ( ) ;
213210 expect ( screen . getByText ( 'App' ) ) . toBeDefined ( ) ;
214- expect ( screen . getByText ( 'Drag or click an html element to the canvas to see what happens!' ) ) . toBeDefined ( ) ;
211+ expect (
212+ screen . getByText (
213+ 'Drag or click an html element to the canvas to see what happens!'
214+ )
215+ ) . toBeDefined ( ) ;
215216 unmount ( ) ;
216217 } ) ;
217- } )
218+ } ) ;
218219
219220describe ( 'Canvas' , ( ) => {
220221 it ( 'Should render all buttons and inputs when Canvas has element' , async ( ) => {
@@ -224,7 +225,7 @@ describe('Canvas', () => {
224225 < DndProvider backend = { HTML5Backend } >
225226 < DragDropPanel />
226227 < MainContainer />
227- < CustomizationPanel isThemeLight = { true } />
228+ < CustomizationPanel isThemeLight = { true } />
228229 </ DndProvider >
229230 </ BrowserRouter >
230231 </ Provider >
0 commit comments