Skip to content

deps: bump react-router-dom from 7.18.2 to 7.18.4 in /frontend - #58

Merged
magicapple123 merged 1 commit into
mainfrom
dependabot/npm_and_yarn/frontend/react-router-dom-7.18.4
Oct 2, 2026
Merged

magicapple123 merged 1 commit into
mainfrom
dependabot/npm_and_yarn/frontend/react-router-dom-7.18.4

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Bumps react-router-dom from 7.18.2 to 7.18.4.

Changelog

Sourced from react-router-dom's changelog.

v7.18.4

Patch Changes

v7.18.3

Patch Changes

Commits

@dependabot @github

dependabot Bot commented on behalf of github Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

Labels

The following labels could not be found: dependencies, frontend. Please create them before Dependabot can add them to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

magicapple123 added a commit that referenced this pull request Oct 2, 2026
WebFormPage「跨页返回恢复未完成会话」用例在 CI 上偶发失败
(#58 的 Frontend 作业):

    TestingLibraryElementError: Unable to find an accessible element
    with the role "button" and name /结束本次填写/

根因是测试自身的时序竞态,而非 router 7.18.4 的行为变化:

- 「结束本次填写」按钮的渲染门控是 `running && (sessionActive || live?.running)`
  (WebFormPage.tsx),除了 sessionStorage 的会话恢复外,还依赖
  getWebFormBrowserStatus 轮询返回的 running —— 它与「填充到页面」按钮
  不在同一次状态提交里。
- 原断言在 waitFor「填充到页面」出现后**同步** getByRole「结束本次填写」,
  高负载下后者尚未提交即抛错。
- 佐证:router 7.18.3/7.18.4 changelog 无会话恢复相关变更
  (7.18.4 仅 RSC redirect 转义与 #15485 避免 startViewTransition 的时序
  变化);本地 7.18.4 下单文件 15 连跑 + 全量套件均绿,失败只在 CI
  负载下偶发,与 #60 的 useWatch 竞态同类。

修复:两处同步断言改为 findByRole / findByDisplayValue 等待落地,
断言内容(role / name / 值)不变,无放松。

验证:vitest 801/801(123 文件);eslint 0 error / 11 warning(基线);
tsc --noEmit、prettier --check 通过。
magicapple123 added a commit that referenced this pull request Oct 2, 2026
react-router-dom 7.18.4 timing exposes the same class of CI-only race as #60: the "结束本次填写" button renders in a later state commit than the "填充到页面" wait covered (depends on browser-status polling). Two synchronous assertions became findBy* waits — assertion values unchanged. 15 consecutive local runs green on 7.18.4. Fixes the #58 Frontend flake.
@magicapple123

Copy link
Copy Markdown
Owner

@dependabot rebase

Bumps [react-router-dom](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom) from 7.18.2 to 7.18.4.
- [Release notes](https://github.com/remix-run/react-router/releases)
- [Changelog](https://github.com/remix-run/react-router/blob/react-router-dom@7.18.4/packages/react-router-dom/CHANGELOG.md)
- [Commits](https://github.com/remix-run/react-router/commits/react-router-dom@7.18.4/packages/react-router-dom)

---
updated-dependencies:
- dependency-name: react-router-dom
  dependency-version: 7.18.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/frontend/react-router-dom-7.18.4 branch from d799465 to ad1fa23 Compare October 2, 2026 12:51
@magicapple123
magicapple123 merged commit beab4ae into main Oct 2, 2026
10 checks passed
@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/frontend/react-router-dom-7.18.4 branch October 2, 2026 12:52
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