Skip to content

fix: remove Component.wait_for_results networkidle pattern (C8)#152

Merged
Lenajava1 merged 2 commits into
devfrom
fix/component-wait-for-results
Apr 28, 2026
Merged

fix: remove Component.wait_for_results networkidle pattern (C8)#152
Lenajava1 merged 2 commits into
devfrom
fix/component-wait-for-results

Conversation

@Lenajava1
Copy link
Copy Markdown
Collaborator

Playwright documents networkidle as DISCOURAGED — it hangs on apps with WebSocket/polling traffic. Project memory and the create-ui-layer SKILL already said "use wait_until=load, not networkidle", but the Component base class advertised the discouraged helper anyway.

  • Delete Component.wait_for_results() from page_objects/components/component.py
  • Replace 13 active call sites across 3 e2e test files with explicit Playwright assertions:
    • 9 positive cases (followed by find_pickup_location_cards(...) which snapshots via .all()) → expect(...pickup_location_cards.first).to_be_visible()
    • 4 cases where the next line was already an auto-waiting expect(...) → just delete
  • Update .claude/skills/create-ui-layer/SKILL.md to remove the wait_for_results sample and explicitly say "no networkidle, wait via expect() on specific locators". Prevents the next UI-layer generation from reintroducing the pattern.

Lenajava1 and others added 2 commits April 28, 2026 19:10
Playwright documents `networkidle` as DISCOURAGED — it hangs on apps
with WebSocket/polling traffic. Project memory and the create-ui-layer
SKILL already said "use wait_until=load, not networkidle", but the
Component base class advertised the discouraged helper anyway.

- Delete `Component.wait_for_results()` from page_objects/components/component.py
- Replace 13 active call sites across 3 e2e test files with explicit
  Playwright assertions:
  - 9 positive cases (followed by `find_pickup_location_cards(...)`
    which snapshots via `.all()`) → `expect(...pickup_location_cards.first).to_be_visible()`
  - 4 cases where the next line was already an auto-waiting `expect(...)` → just delete
- Update .claude/skills/create-ui-layer/SKILL.md to remove the
  wait_for_results sample and explicitly say "no networkidle, wait via
  expect() on specific locators". Prevents the next UI-layer
  generation from reintroducing the pattern.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

REST API Test Results

295 tests   292 ✅  27s ⏱️
  4 suites    3 💤
  4 files      0 ❌

Results for commit a770b1a.

@Lenajava1 Lenajava1 merged commit a7f5c99 into dev Apr 28, 2026
3 checks passed
@Lenajava1 Lenajava1 deleted the fix/component-wait-for-results branch April 28, 2026 18:58
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.

1 participant