Skip to content

fix(ci): increase wait and timeout in migration UI test_01_open_flow - #212

Merged
lice-reis merged 1 commit into
mainfrom
fix/migration-ui-test-wait
May 11, 2026
Merged

fix(ci): increase wait and timeout in migration UI test_01_open_flow#212
lice-reis merged 1 commit into
mainfrom
fix/migration-ui-test-wait

Conversation

@lice-reis

Copy link
Copy Markdown
Collaborator

Problem

test_01_open_flow was failing with element(s) not found for .react-flow after migrating to nightly. The 3s wait was too short for the flow editor canvas to render in CI runners.

Tests 02–06 all passed because they each navigate to the same URL with a 5s wait.

Fix

  • Increased wait_for_timeout from 30005000 ms (consistent with all other tests)
  • Extended expect(...).to_be_visible timeout from 15_00020_000 ms for extra CI headroom
  • Fixed canvas.firstcanvas.first() (correct Playwright Python method call syntax)

🤖 Generated with Claude Code

3s wait was too short for the nightly flow editor to render in CI.
Aligned with other tests (5s) and extended expect timeout to 20s.
Also fixes .first -> .first() (Playwright Python method call syntax).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@lice-reis
lice-reis requested a review from Copilot May 11, 2026 18:44
@lice-reis
lice-reis merged commit cd17e39 into main May 11, 2026
4 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to stabilize the migration workflow UI test suite by giving the migrated flow editor more time to render in CI (addressing intermittent “element not found” failures in test_01_open_flow).

Changes:

  • Increase the post-navigation wait in test_01_open_flow from 3s to 5s to match the other migration UI tests.
  • Increase the visibility assertion timeout for the flow canvas from 15s to 20s.
  • Update the locator “first element” access in the canvas visibility assertion.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

# Verify the flow editor loaded (look for the canvas/reactflow area)
canvas = self.page.locator(".react-flow, [data-testid='rf__wrapper']")
expect(canvas.first).to_be_visible(timeout=15_000)
expect(canvas.first()).to_be_visible(timeout=20_000)
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.

2 participants