Skip to content

Commit 988f382

Browse files
committed
Fix silly mistake
1 parent bd04057 commit 988f382

File tree

1 file changed

+6
-1
lines changed
  • packages/driver/src/cypress

1 file changed

+6
-1
lines changed

packages/driver/src/cypress/cy.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,10 +846,15 @@ export class $Cy extends EventEmitter2 implements ITimeouts, IStability, IAssert
846846
return memo
847847
}, [initialCommand])
848848

849+
const chainerId = this.state('chainerId')
850+
849851
for (let c of commandsToInsert) {
850852
// clone the command to prevent
851853
// mutating its properties
852-
return cy.enqueue(c.clone())
854+
const command = c.clone()
855+
856+
command.set('chainerId', chainerId)
857+
cy.enqueue(command)
853858
}
854859
}
855860

0 commit comments

Comments
 (0)