Skip to content

Commit 09635c0

Browse files
lice-reisclaude
andauthored
fix(ci): use broader canvas selector in migration UI test_01 (#216)
.react-flow exact class no longer matches in current nightly (ReactFlow version bump changed class names). Use [class*='react-flow'] prefix match with a fallback to generic node selectors. Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent b761d0a commit 09635c0

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

tests/github-workflows/migration/test_ui_migration.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,13 @@ def test_01_open_flow(self):
5757
self.page.goto(f"{self.base_url}/flow/{self.flow_id}", wait_until="networkidle")
5858
self.page.wait_for_timeout(5000)
5959

60-
# Verify the flow editor loaded (look for the canvas/reactflow area)
61-
canvas = self.page.locator(".react-flow, [data-testid='rf__wrapper']")
60+
# Verify the flow editor loaded — use a broad selector resilient to
61+
# ReactFlow version changes (class prefix match covers react-flow,
62+
# react-flow__renderer, react-flow__pane, etc.)
63+
canvas = self.page.locator("[class*='react-flow'], [data-testid='rf__wrapper']")
64+
if canvas.count() == 0:
65+
# Fallback: check for any generic node card present in the flow editor
66+
canvas = self.page.locator(".generic-node, [data-testid*='node'], .node-card")
6267
expect(canvas.first).to_be_visible(timeout=20_000)
6368

6469
self.results["steps"]["open_flow"] = {"status": "pass"}

0 commit comments

Comments
 (0)