Use timeout instead of num_sec#125
Merged
mshriver merged 1 commit intoJun 3, 2026
Merged
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR updates usages of the 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="testing/components/test_pagination.py" line_range="23" />
<code_context>
paginator = TestView(browser).paginator
browser.click(SIDE_BAR_LOCATOR) # To jump on specific paginator to avoid flakyness in tests.
- wait_for(lambda: paginator.is_displayed, num_sec=10)
+ wait_for(lambda: paginator.is_displayed, timeout=10)
yield paginator
try:
</code_context>
<issue_to_address>
**suggestion (bug_risk):** Consider calling `is_displayed` in the wait predicate to ensure we are waiting on a boolean condition
The predicate `lambda: paginator.is_displayed` returns the attribute itself, not the result of a visibility check. Please change this to `lambda: paginator.is_displayed()` if `is_displayed` is a method, or keep it as an attribute only if it’s a property that returns a boolean. Otherwise the wait may succeed without actually confirming the paginator is visible.
Suggested implementation:
```python
paginator = TestView(browser).paginator
browser.click(SIDE_BAR_LOCATOR) # To jump on specific paginator to avoid flakyness in tests.
wait_for(lambda: paginator.is_displayed(), timeout=10)
yield paginator
try:
```
If `is_displayed` is actually implemented as a boolean property (not a method) on `paginator`, this change should instead be reverted to the attribute form and the underlying implementation updated (if needed) to ensure it returns a boolean. In that case, confirm `is_displayed` is a `@property` and returns `True` only when the paginator is visible.
</issue_to_address>Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
mshriver
approved these changes
Jun 2, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## legacy-selenium-support #125 +/- ##
========================================================
Coverage 99.06% 99.06%
========================================================
Files 48 48
Lines 1932 1932
========================================================
Hits 1914 1914
Misses 18 18
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
vsedmik
approved these changes
Jun 2, 2026
mshriver
approved these changes
Jun 3, 2026
349bbe6
into
RedHatQE:legacy-selenium-support
8 of 12 checks passed
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.
Manual CP of #123 for
legacy-selenium-supportbranch which is used by https://github.com/SatelliteQE/airgunSummary by Sourcery
Replace deprecated wait_for num_sec parameter with timeout across components and tests.
Bug Fixes:
Enhancements:
Tests: