Skip to content

fix: prevent retry config accumulation#5606

Open
smalia2001 wants to merge 2 commits into
codeceptjs:4.xfrom
smalia2001:fix/retry-failed-step-accumulation
Open

fix: prevent retry config accumulation#5606
smalia2001 wants to merge 2 commits into
codeceptjs:4.xfrom
smalia2001:fix/retry-failed-step-accumulation

Conversation

@smalia2001
Copy link
Copy Markdown

@smalia2001 smalia2001 commented Jun 5, 2026

Make each plugin/helper clean its own retry configuration

Applicable helpers:

  • Playwright
  • Puppeteer
  • WebDriver
  • REST
  • FileHelper
  • Appium

Applicable plugins:

  • aiTrace
  • autoDelay
  • autoLogin
  • customLocator
  • pause
  • coverage
  • heal
  • retryFailedStep
  • screenshot
  • selenoid
  • stepTimeout
  • subtitles

Type of change

  • 🔥 Breaking changes
  • 🚀 New functionality
  • 🐛 Bug fix
  • 🧹 Chore
  • 📋 Documentation changes/updates
  • ♨️ Hot fix
  • 🔨 Markdown files fix - not related to source code
  • 💅 Polish code

Checklist:

  • Tests have been added
  • Documentation has been added (Run npm run docs)
  • Lint checking (Run npm run lint)
  • Local tests are passed (Run npm test)

…leanup their own config after each test

- Playwright & Puppeteer: store retry config in this._retryConfig and remove in _after()
- retryFailedStep plugin: avoid duplicate pushes and clean config on event.test.after
@DavertMik DavertMik requested a review from DenysKuchma June 7, 2026 13:02
@DavertMik
Copy link
Copy Markdown
Contributor

@smalia2001 could be resolve the real issue
Please prove it with writing a unit test for it
Also descrbe the issue in PR descriptoin

@smalia2001
Copy link
Copy Markdown
Author

@DavertMik done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: retryOnFailedStep works only for the first test in the same run

2 participants