bee:condition-based-waiting
CommunityFix flaky tests with smart waits.
Authorluanrodrigues
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill eliminates flaky tests caused by arbitrary timeouts by implementing condition-based polling, ensuring tests wait for actual state changes rather than guessing durations.
Core Features & Use Cases
- Replaces Arbitrary Timeouts: Swaps
setTimeoutorsleepwith intelligent waiting for specific conditions. - Fixes Flaky Tests: Improves test reliability by removing race conditions common in CI or under load.
- Handles Async Operations: Reliably waits for asynchronous operations to complete before asserting results.
- Use Case: In an e-commerce test suite, instead of waiting 500ms for an order to process, this Skill waits until the order status explicitly changes to 'completed', making the test faster and more reliable.
Quick Start
Use the condition-based waiting skill to wait for the user.isLoggedIn state to become true before proceeding.
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: bee:condition-based-waiting Download link: https://github.com/luanrodrigues/ia-frmwrk/archive/main.zip#bee-condition-based-waiting Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.