fix(e2e): add explicit visibility wait before clicking workflow links [release-1.9]#4530
Conversation
Race condition in selectFailSwitchWorkflowItem and selectGreetingWorkflowItem:
the table becomes visible but the specific workflow link may not yet be rendered,
causing the click to fail silently and tests to timeout after 50+ seconds.
Add explicit `await expect(link).toBeVisible({ timeout: 30000 })` before
clicking, matching the fix applied to main in redhat-developer#4494.
Ref: https://issues.redhat.com/browse/RHDHBUGS-2671
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR TypeBug fix Description
|
| Relevant files | |||
|---|---|---|---|
| Bug fix |
|
|
/test ? |
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||
|
/test e2e-ocp-v4-20-helm-nightly |
|
/test e2e-ocp-v4-20-helm-nightly |
Add waitForWorkflowToAppear helper that uses short auto-wait checks (3s) before reloading the page, avoiding unnecessary reloads while handling the race condition where the backend hasn't registered the workflow yet. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
/test e2e-ocp-v4-20-helm-nightly |
The SonataFlow operator + Data Index Service can take over a minute to register workflows after a fresh deploy. Increase retry window to 10 attempts with 5s auto-wait each + 30s final assertion, and bump test timeout to 180s to accommodate the longer wait. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
/test e2e-ocp-v4-20-helm-nightly |
The Workflows.workflowsTable locator uses nth(2) on generic divs, which breaks during page loading states after reload. Replace with the stable "Workflows" heading locator inside waitForWorkflowToAppear to prevent the retry loop from failing on transient DOM states. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
|
/test e2e-ocp-helm-nightly |
|
@gustavolira: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |



Summary
selectFailSwitchWorkflowItemandselectGreetingWorkflowItemwhere the workflow table becomes visible but the specific workflow link hasn't rendered yetawait expect(link).toBeVisible({ timeout: 30000 })before clicking — same pattern introduced inmainvia test(e2e): add orchestrator RHDH entity workflow tests #4230failswitch-workflow.spec.tstests timing out at ~50s in release-1.9Root cause
After
openSidebar("Orchestrator")navigates to the page,selectFailSwitchWorkflowItemverifies theWorkflowsheading and table are visible, but immediately clicks the workflow link before it finishes rendering. This causes a silent miss and the test times out waiting for the next step.Test plan
failswitch-workflow.spec.tstests pass on release-1.9 CI runsgreeting-workflow.spec.ts🤖 Generated with Claude Code