@@ -17,14 +17,14 @@ test.describe('Demo', () => {
1717 } ) ;
1818
1919 test ( 'can import template' , async ( { n8n } ) => {
20- await n8n . demo . visitDemoPage ( ) ;
20+ await n8n . demo . goto ( ) ;
2121 expect ( await n8n . notifications . getAllNotificationTexts ( ) ) . toHaveLength ( 0 ) ;
2222 await n8n . demo . importWorkflow ( simpleWorkflow ) ;
2323 await expect ( n8n . canvas . getCanvasNodes ( ) ) . toHaveCount ( 3 ) ;
2424 } ) ;
2525
2626 test ( 'can import workflow with pin data' , async ( { n8n } ) => {
27- await n8n . demo . visitDemoPage ( ) ;
27+ await n8n . demo . goto ( ) ;
2828 await expect ( n8n . canvas . canvasPane ( ) ) . toBeVisible ( ) ;
2929 await n8n . demo . importWorkflow ( workflowWithPinned ) ;
3030 await expect ( n8n . canvas . getCanvasNodes ( ) ) . toHaveCount ( 2 ) ;
@@ -34,13 +34,13 @@ test.describe('Demo', () => {
3434 } ) ;
3535
3636 test ( 'can override theme to dark' , async ( { n8n } ) => {
37- await n8n . demo . visitDemoPage ( 'dark' ) ;
37+ await n8n . demo . goto ( 'dark' ) ;
3838 await expect ( n8n . demo . getBody ( ) ) . toHaveAttribute ( 'data-theme' , 'dark' ) ;
3939 expect ( await n8n . notifications . getAllNotificationTexts ( ) ) . toHaveLength ( 0 ) ;
4040 } ) ;
4141
4242 test ( 'can override theme to light' , async ( { n8n } ) => {
43- await n8n . demo . visitDemoPage ( 'light' ) ;
43+ await n8n . demo . goto ( 'light' ) ;
4444 await expect ( n8n . demo . getBody ( ) ) . toHaveAttribute ( 'data-theme' , 'light' ) ;
4545 expect ( await n8n . notifications . getAllNotificationTexts ( ) ) . toHaveLength ( 0 ) ;
4646 } ) ;
0 commit comments