Use timeout instead of num_sec#123
Merged
Merged
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideReplace deprecated wait_for argument num_sec with timeout across chip component logic, navigation loading checks, and pagination-related tests to prepare for wait-for v2. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="src/widgetastic_patternfly5/components/chip.py" line_range="107" />
<code_context>
if not self.read_only:
self.button.click()
- wait_for(_gone, num_sec=3, message="wait for chip to dissappear", delay=0.1)
+ wait_for(_gone, timeout=3, message="wait for chip to dissappear", delay=0.1)
else:
raise ChipReadOnlyError(self, "Chip is read-only")
</code_context>
<issue_to_address>
**nitpick (typo):** Fix the typo in the wait message string.
Change `"dissappear"` to `"disappear"` in the message so logs remain clean and searchable.
```suggestion
wait_for(_gone, timeout=3, message="wait for chip to disappear", delay=0.1)
```
</issue_to_address>Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
preparation for wait-for v2 Co-authored-by: Claude <noreply@anthropic.com>
624768b to
bb15283
Compare
There was a problem hiding this comment.
Pull request overview
This PR updates widgetastic Patternfly5 components and pagination tests to use the timeout parameter for wait_for, replacing the deprecated num_sec argument in preparation for wait-for v2.
Changes:
- Replace
num_secwithtimeoutin pagination-related tests. - Replace
num_secwithtimeoutin the Navigation component’s readiness wait. - Replace
num_secwithtimeoutin Chip component waits.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| testing/ouia/test_pagination_ouia.py | Updates wait_for call to use timeout in OUIA pagination fixture setup. |
| testing/components/test_pagination.py | Updates wait_for call to use timeout in pagination fixture setup. |
| src/widgetastic_patternfly5/components/navigation.py | Updates navigation readiness polling to use timeout. |
| src/widgetastic_patternfly5/components/chip.py | Updates chip waits to use timeout (and touches related wait messages). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
LadislavVasina1
approved these changes
Jun 1, 2026
vsedmik
approved these changes
Jun 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
preparation for wait-for v2
failures in the PF6 CI jobs are unrelated to this change and I'd rather not include commits to fix them here.
Summary by Sourcery
Replace deprecated wait_for num_sec parameter with timeout across components and tests.
Enhancements:
Tests:
Chores: