File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import { mount } from 'cypress/react';
2222import  './commands' ; 
2323import  {  FrontendConfigContext  }  from  '../../src/context/FrontendConfigContext' ; 
2424import  {  mockedFrontendConfig  }  from  '../../src/utils/testing' ; 
25- 
25+ import   {   ToastProvider   }   from   '../../src/context/ToastContext.tsx' ; 
2626// Augment the Cypress namespace to include type definitions for 
2727// your custom command. 
2828// Alternatively, can be defined in cypress/support/component.d.ts 
@@ -38,10 +38,10 @@ declare global {
3838
3939
4040Cypress . Commands . add ( 'mount' ,  ( component ,  options )  =>  { 
41-   return  mount ( < ThemeProvider > 
41+   return  mount ( < ThemeProvider >    < ToastProvider > 
4242    < FrontendConfigContext  value = { mockedFrontendConfig } > 
4343      { component } 
44-     </ FrontendConfigContext > 
44+     </ FrontendConfigContext > </ ToastProvider > 
4545  </ ThemeProvider > ,  options ) ; 
4646} ) ; 
4747
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments