Fix e2e tests (#2103)
<!-- CURSOR_SUMMARY -->
> [!NOTE]
> Stabilizes e2e behavior and snapshots; adds fixtures and minor UI test
hook.
>
> - **Snapshot determinism**: Normalize `dyad_options.versioned_files`
fileIds to `[[FILE_ID_*]]` in `test_helper.ts` and apply during request
dumps; refresh related snapshots
> - **Token bar reliability**: Add `data-testid="token-bar-toggle"` in
`AuxiliaryActionsMenu` and new `po.toggleTokenBar()` helper; update
Supabase branch test
> - **Version integrity tests**: Add fixture app (`version-integrity`)
and new/updated tests + snapshots validating add/edit/delete/move and
restore flow with explicit wait
> - **Misc**: Update local agent snapshot to include `web_search` tool;
bump `package-lock.json` to `0.33.0-beta.1`
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
1415ef1379a71bf6efe61da5079ff65dead84ba4. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Stabilizes e2e tests by making snapshot data deterministic and fixing
races in token bar toggle and restore flows. Updates snapshots
(including web_search) and adds a version-integrity app fixture; also
adds a test id for reliable selectors.
- **Bug Fixes**
- Normalize versioned_files fileIds in dumps to deterministic
placeholders before snapshotting.
- Add data-testid="token-bar-toggle" and PageObject.toggleTokenBar() to
avoid flakiness; update Supabase branch test to use it.
- Refresh snapshots to reflect deterministic IDs and the web_search
tool.
- Add version-integrity import app fixture and snapshot coverage; wait
for restore completion in version_integrity.spec to prevent flakiness.
- **Dependencies**
- Bump package-lock version to 0.33.0-beta.1.
<sup>Written for commit 1415ef1379a71bf6efe61da5079ff65dead84ba4.
Summary will update on new commits.</sup>
<!-- End of auto-generated description by cubic. -->
正在显示
请
注册
或者
登录
后发表评论