You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(snaps): Disable device synchronization in all tests (#30087)
<!--
Please submit this PR as a draft initially.
Do not mark it as "Ready for review" until this PR meets the canonical
Definition of Ready For Review in `docs/readme/ready-for-review.md`.
In short: the template must be materially complete (not just section
titles
present), all status checks must be currently passing, and the only
expected
follow-up commits must be reviewer-driven.
-->
## **Description**
Add an optional property `disableSynchronization` to `withFixtures` and
use it for all Snaps tests. This saves a large chunk of time when
running these E2Es (**over 40s for some tests**).
## **Changelog**
<!--
If this PR is not End-User-Facing and should not show up in the
CHANGELOG, you can choose to either:
1. Write `CHANGELOG entry: null`
2. Label with `no-changelog`
If this PR is End-User-Facing, please write a short User-Facing
description in the past tense like:
`CHANGELOG entry: Added a new tab for users to see their NFTs`
`CHANGELOG entry: Fixed a bug that was causing some NFTs to flicker`
(This helps the Release Engineer do their job more quickly and
accurately)
-->
CHANGELOG entry: null
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> Test-only changes that adjust Detox synchronization behavior across
many E2E specs; main risk is increased flakiness or hidden timing issues
in the Snaps smoke suite.
>
> **Overview**
> Adds a new `withFixtures` option, `disableSynchronization`, and
applies it to the Snaps smoke tests to run them with Detox
synchronization turned off.
>
> `withFixtures` now explicitly enables or disables synchronization
after (re)launch, and ad-hoc sync toggling in
`BrowserView.navigateToURL` (and the iOS WebSocket workaround in
`test-snap-network-access.spec.ts`) is removed in favor of the
centralized flag.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
4f29881. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
0 commit comments