CodeceptJS
CodeceptJS copied to clipboard
fix: retryFailedStep plugin works in debug/verbose mode
Fixed by VSCode Copilot with Claude Sonnet 4.
Personally I checked that the added unit test fails as expected before the fix.
Motivation/Description of the PR
- Remove debugMode check that prevented retries when --verbose or --debug flags are used
- Fix affects both retryFailedStep and enhancedRetryFailedStep plugins
- Add regression test to ensure retries work correctly in debug mode
- Resolves issue where plugin was disabled in debug mode without clear reason
Fixes #4384
Applicable helpers:
- [ ] Playwright
- [ ] Puppeteer
- [ ] WebDriver
- [ ] REST
- [ ] FileHelper
- [ ] Appium
- [ ] TestCafe
Applicable plugins:
- [ ] allure
- [ ] autoDelay
- [ ] autoLogin
- [ ] customLocator
- [ ] pauseOnFail
- [ ] coverage
- [x] retryFailedStep
- [ ] screenshotOnFail
- [ ] selenoid
- [ ] stepByStepReport
- [ ] stepTimeout
- [ ] wdio
- [ ] subtitles
Type of change
- [ ] :fire: Breaking changes
- [ ] :rocket: New functionality
- [x] :bug: Bug fix
- [ ] 🧹 Chore
- [ ] :clipboard: Documentation changes/updates
- [ ] :hotsprings: Hot fix
- [ ] :hammer: Markdown files fix - not related to source code
- [ ] :nail_care: Polish code
Checklist:
- [x] Tests have been added
- [ ] Documentation has been added (Run
npm run docs) - [x] Lint checking (Run
npm run lint) - [x] Local tests are passed (Run
npm test)