File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed
redisinsight/ui/src/components/side-panels/panels/enablement-area/EnablementArea Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ describe('EnablementArea', () => {
192192 expect ( screen . getByTestId ( 'upload-tutorial-form' ) ) . toBeInTheDocument ( )
193193 } )
194194
195- it ( 'should render open form with tutorials' , ( ) => {
195+ it ( 'should render form directly when no tutorials' , ( ) => {
196196 const customTutorials = [
197197 { ...MOCK_CUSTOM_TUTORIALS_ITEMS [ 0 ] , children : [ ] } ,
198198 ]
@@ -202,9 +202,6 @@ describe('EnablementArea', () => {
202202 customTutorials = { customTutorials }
203203 /> ,
204204 )
205- expect ( screen . getByTestId ( 'welcome-my-tutorials' ) ) . toBeInTheDocument ( )
206-
207- fireEvent . click ( screen . getByTestId ( 'upload-tutorial-btn' ) )
208205 expect ( screen . getByTestId ( 'upload-tutorial-form' ) ) . toBeInTheDocument ( )
209206 } )
210207
@@ -254,17 +251,6 @@ describe('EnablementArea', () => {
254251 )
255252 } )
256253
257- it ( 'should not render welcome screen if at least one tutorial uploaded' , ( ) => {
258- render (
259- < EnablementArea
260- { ...instance ( mockedProps ) }
261- customTutorials = { MOCK_CUSTOM_TUTORIALS_ITEMS }
262- /> ,
263- )
264- expect (
265- screen . queryByTestId ( 'welcome-my-tutorials' ) ,
266- ) . not . toBeInTheDocument ( )
267- } )
268254 } )
269255
270256 describe ( 'Telemetry' , ( ) => {
You can’t perform that action at this time.
0 commit comments