Skip to content

Browser test failures repeatedly remove dependency refresh PR from merge queue #46060

Closed

Description

@hyoban

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

Source checkouts from two merge-group runs for #46057 on 2026-11-11:

  • PR head: 2c75f8518f214aeb647c339c8495838227df6f2c
  • First queue candidate: b0743566ca164a40282714ebb5dbae7d564e7a1a
  • Second queue candidate: f8fff6b3f7b2328bf8cf593ffcac4b1e3ae23294

Both jobs report Vitest 5.1.0, browser project chromium.

Cloud or Self Hosted

Self Hosted (Source) — GitHub Actions browser component tests; no deployed application is involved.

Steps to reproduce

  1. Queue chore(deps): refresh compatible JavaScript dependencies #46057 (chore(deps): refresh compatible JavaScript dependencies). Its PR-head CI run passed.

  2. Observe Run Web Tests / Web Browser Tests (2/2) in the Main CI Pipeline merge-group workflow. The command, executed from web/, is:

    vp test run --project browser --silent=passed-only --shard=2/2 --coverage
  3. The first queue run fails in the SupportMenu Zendesk error/retry test. Requeue the unchanged PR head: the second run passes that file but fails in the workflow comment movement test instead.

These are observed CI failures, not a deterministic local reproduction. No local full-suite run was attempted. The PR changes only package.json, pnpm-workspace.yaml, and pnpm-lock.yaml; merge-group checkouts also contain changes from main. Passing PR-head checks therefore do not by themselves establish flakiness or rule out an interaction with the dependency updates.

✔️ Expected Behavior

The Zendesk failure test observes the error notification and permits a fresh retry. The comment movement test can click the comment marker after dragging its preview and then observe Comment opened.

Both interactions should be tested reliably in Chromium CI so the required browser check can complete successfully when the behavior is correct.

❌ Actual Behavior

Two consecutive merge-group attempts each finished with 1 failed / 120 passed test files and 1 failed / 401 passed / 2 expected-fail tests. Both failures propagated to the required Web Tests check, and GitHub removed the PR with reason failed_checks.

Queue attempt Failed test Queue removal time (UTC) Evidence
First SupportMenu Zendesk error/retry 2026-11-11 08:41:52 Job log, failure artifacts
Second Workflow comment movement 2026-11-11 09:00:45 Job log, failure artifacts

1. Zendesk error notification is missing

app/components/main-nav/components/__tests__/support-menu.browser.spec.tsx → surfaces a failed Zendesk launch and permits a fresh retry, failing at line 113:

VitestBrowserElementError: Cannot find element with locator:
  page.getByText('common.api.actionFailed')

ARIA tree:
- button "Support"
- region "Notifications"

The test rejects zendeskRuntime.open once, clicks Contact Us, then waits for the error toast to become visible. Its fixture renders <AppToaster timeout={100} />. Whether the short lifetime allows the toast to disappear before the assertion observes it is a hypothesis to investigate, not a confirmed cause. This file passed in the second queue run.

2. Comment preview intercepts the marker click after dragging

app/components/workflow/comment/comment-movement.browser.spec.tsx → keeps an authored comment focusable and draggable after adding keyboard movement, failing at await marker.click() on line 93:

TimeoutError: locator.click: Timeout 14343ms exceeded.
- locator resolved to <button data-role="comment-marker" ...>
- element is visible, enabled and stable
- <div class="system-sm-regular wrap-break-word text-text-secondary">Comment</div>
  from <div class="absolute z-20" data-role="comment-preview">…</div>
  subtree intercepts pointer events

The trace reaches keyboard movement, preview hover, drag-and-drop, and the assertion that the comment has not opened. The subsequent marker click repeatedly hits the preview until it times out. This file passed in the first queue run.

The two failures are recorded together because they successively blocked the same dependency-refresh PR. A shared root cause has not been established; the notification timing and preview hit-testing need separate investigation. Screenshots and traces are available in the linked browser-test-failures-2-2 artifacts. The earlier, closed #43828 concerned a different reply-deletion keyboard flow.

Activity

  1. added
    🐞 bug
    on Nov 11, 2026
  2. dosubot commented on Nov 11, 2026

    @dosubot

    Two implementation details help narrow the separate investigations:

    • AppToaster forwards timeout directly to the UI toaster; its normal default is 5000, versus the fixture’s 100. The Zendesk rejection handler calls toast.error without a per-toast override. A useful isolation experiment is to retain the normal lifetime, assert visibility, then explicitly dismiss the toast and await removal before retrying. That separates error/retry coverage from the short auto-dismiss window, without treating the timing hypothesis as proven. [1] [2] [3]

    • The comment’s pointer-up handler already hides the preview, but marker mouse-enter can reopen it whenever the comment is inactive and not dragging. The preview uses z-20 above the marker’s z-10, and its positioning allows it to overlap the marker. This suggests checking whether the final click’s pointer movement reopens the preview, rather than assuming drag cleanup simply left it visible. [4]

    For the comment case, I’d record preview visibility and document.elementFromPoint at the marker’s center immediately before clicking and after hovering it again. That would distinguish stale post-drag state from hover-triggered overlap. Avoid a forced click here: the test explicitly owns real marker hit-testing, so bypassing it would hide the behavior it is meant to cover. [5]

    To reply, just mention @dosu.


    Share context across your team and agents. Try Dosu.

    Leave Feedback Learn about dify with Dosu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    project#dify🐞 bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions