Skip to content

Commit

Permalink
frontend: Fix bug in Cypress plugin
Browse files Browse the repository at this point in the history
Fix bug in Cypress custom plugin that provides executions.
Array was used as integer in one calculation, that
was provided unexpected results in some scenarios.
Fix uses Array length for calculation of left exec.

Signed-off-by: Goran Kokinovski <[email protected]>
  • Loading branch information
gorankokin committed Jul 27, 2023
1 parent ec6eb83 commit e479386
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,9 @@ const provideDataJobsExecutions = (taskConfig, config) => {
jobExecutionTimeout,
prevCommandInner.lastDeployment,
targetExecutions -
prevCommandInner.executions,
prevCommandInner
.executions
.length,
config
).then((result) => {
return {
Expand Down

0 comments on commit e479386

Please sign in to comment.