Skip to content

Commit

Permalink
refactor(botonic-core): resolve a CreateTestCase inside a redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
Iru89 committed Sep 5, 2024
1 parent 2727193 commit cf23ed6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/botonic-core/src/core-bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,16 @@ export class CoreBot {
)
}

if (
response.session._botonic_action?.startsWith(BotonicAction.CreateTestCase)
) {
return await this.runFollowUpTestIntegrationInput(response, {

Check warning on line 328 in packages/botonic-core/src/core-bot.ts

View check run for this annotation

Codecov / codecov/patch

packages/botonic-core/src/core-bot.ts#L328

Added line #L328 was not covered by tests
input,
session,
lastRoutePath,
})
}

return response

Check warning on line 335 in packages/botonic-core/src/core-bot.ts

View check run for this annotation

Codecov / codecov/patch

packages/botonic-core/src/core-bot.ts#L335

Added line #L335 was not covered by tests
}
}

0 comments on commit cf23ed6

Please sign in to comment.