@@ -8,6 +8,11 @@ describe('Flows', () => {
88 cy . fixture ( 'routes' ) . then ( ( { orgs} ) => {
99 cy . visit ( `${ orgs } /${ id } ` )
1010 cy . getByTestID ( 'version-info' ) . should ( 'be.visible' )
11+
12+ cy . createNotebook ( id ) . then ( ( ) => {
13+ cy . reload ( )
14+ } )
15+
1116 cy . getByTestID ( 'nav-item-flows' ) . should ( 'be.visible' )
1217 cy . getByTestID ( 'nav-item-flows' ) . click ( )
1318 } )
@@ -104,7 +109,7 @@ describe('Flows', () => {
104109
105110 cy . clickNavBarItem ( 'nav-item-flows' )
106111
107- cy . get ( '.cf-resource-card' ) . should ( 'have.length' , 1 )
112+ cy . get ( '.cf-resource-card' ) . should ( 'have.length' , 2 )
108113
109114 cy . getByTestID ( 'resource-editable-name' ) . contains ( `${ flowName } ` )
110115
@@ -133,7 +138,7 @@ describe('Flows', () => {
133138
134139 cy . clickNavBarItem ( 'nav-item-flows' )
135140
136- cy . get ( '.cf-resource-card' ) . should ( 'have.length' , 2 )
141+ cy . get ( '.cf-resource-card' ) . should ( 'have.length' , 3 )
137142 cy . get ( '.cf-resource-editable-name' ) . first ( ) . contains ( flowCloneNamePrefix )
138143
139144 // Delete the cloned flow
@@ -145,7 +150,7 @@ describe('Flows', () => {
145150 cy . getByTestID ( 'notification-success' ) . should ( 'be.visible' )
146151 cy . getByTestID ( 'notification-success--dismiss' ) . click ( )
147152
148- cy . get ( '.cf-resource-card' ) . should ( 'have.length' , 1 )
153+ cy . get ( '.cf-resource-card' ) . should ( 'have.length' , 2 )
149154 cy . getByTestID ( 'resource-editable-name' ) . contains ( `${ flowName } ` )
150155
151156 // Clone a flow again
@@ -177,8 +182,8 @@ describe('Flows', () => {
177182
178183 cy . getByTestID ( 'notification-success' ) . should ( 'be.visible' )
179184
180- cy . get ( '.cf-resource-card' ) . should ( 'have.length' , 1 )
181- cy . get ( '.cf-resource-editable-name' ) . should ( 'have.length' , 1 )
185+ cy . get ( '.cf-resource-card' ) . should ( 'have.length' , 2 )
186+ cy . get ( '.cf-resource-editable-name' ) . should ( 'have.length' , 2 )
182187 cy . get ( '.cf-resource-editable-name' ) . contains ( `${ flowName } ` )
183188 } )
184189
@@ -260,9 +265,13 @@ describe('Flows with newQueryBuilder flag on', () => {
260265 } ) . then ( ( ) => {
261266 cy . visit ( `${ orgs } /${ id } ` )
262267 } )
268+ cy . createNotebook ( id ) . then ( ( ) => {
269+ cy . reload ( )
270+ } )
263271 } )
264272 )
265273 cy . getByTestID ( 'version-info' )
274+
266275 cy . getByTestID ( 'nav-item-flows' ) . should ( 'be.visible' )
267276 cy . getByTestID ( 'nav-item-flows' ) . click ( )
268277 } )
@@ -354,7 +363,7 @@ describe('Flows with newQueryBuilder flag on', () => {
354363
355364 cy . clickNavBarItem ( 'nav-item-flows' )
356365
357- cy . get ( '.cf-resource-card' ) . should ( 'have.length' , 1 )
366+ cy . get ( '.cf-resource-card' ) . should ( 'have.length' , 2 )
358367
359368 cy . getByTestID ( 'resource-editable-name' ) . contains ( `${ flowName } ` )
360369
@@ -383,7 +392,7 @@ describe('Flows with newQueryBuilder flag on', () => {
383392
384393 cy . clickNavBarItem ( 'nav-item-flows' )
385394
386- cy . get ( '.cf-resource-card' ) . should ( 'have.length' , 2 )
395+ cy . get ( '.cf-resource-card' ) . should ( 'have.length' , 3 )
387396 cy . get ( '.cf-resource-editable-name' ) . first ( ) . contains ( flowCloneNamePrefix )
388397
389398 // Delete the cloned flow
@@ -395,7 +404,7 @@ describe('Flows with newQueryBuilder flag on', () => {
395404 cy . getByTestID ( 'notification-success' ) . should ( 'be.visible' )
396405 cy . getByTestID ( 'notification-success--dismiss' ) . click ( )
397406
398- cy . get ( '.cf-resource-card' ) . should ( 'have.length' , 1 )
407+ cy . get ( '.cf-resource-card' ) . should ( 'have.length' , 2 )
399408 cy . getByTestID ( 'resource-editable-name' ) . contains ( `${ flowName } ` )
400409
401410 // Clone a flow again
@@ -427,8 +436,8 @@ describe('Flows with newQueryBuilder flag on', () => {
427436
428437 cy . getByTestID ( 'notification-success' ) . should ( 'be.visible' )
429438
430- cy . get ( '.cf-resource-card' ) . should ( 'have.length' , 1 )
431- cy . get ( '.cf-resource-editable-name' ) . should ( 'have.length' , 1 )
439+ cy . get ( '.cf-resource-card' ) . should ( 'have.length' , 2 )
440+ cy . get ( '.cf-resource-editable-name' ) . should ( 'have.length' , 2 )
432441 cy . get ( '.cf-resource-editable-name' ) . contains ( `${ flowName } ` )
433442 } )
434443} )
0 commit comments