Commit 60e51d2
authored
test: Run Snaps E2E on main build (#29322)
## **Description**
This PR enables `CAN_INSTALL_THIRD_PARTY_SNAPS` when `isTest` is true
(e.g. in the E2E environments) in an effort to run the Snaps E2E suite
on the main build type. It installs the preinstalled example Snap in the
test environment as well.
To make the tests pass, it was required to replace the **invalid**
mocking of the Snaps Registry with a valid dump of the existing registry
(matching the implementation in extension).
Additionally this PR removes the Flask build tests including the CI
configuration, this may need a sanity check.
## **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
## **Related issues**
https://consensyssoftware.atlassian.net/browse/WPC-984
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Medium Risk**
> CI coverage changes (removing Flask E2E jobs and adding Snaps smoke
suites) can cause regressions in what’s exercised/gated in PRs. Runtime
behavior is only loosened in non-production/test environments, but it
still affects Snap availability during automated testing.
>
> **Overview**
> Enables running the Snaps E2E smoke suite against the **main** build
by allowing third-party Snaps when `isTest` is true and conditionally
preinstalling the example Snap in test runs.
>
> Updates E2E API mocking to return a realistic Snaps registry payload
(via `snaps-registry.txt`) and a fixed signature, replacing the previous
empty ACL registry mocks.
>
> Reshapes CI E2E execution by **removing** the Android/iOS Flask E2E
smoke workflows and their required checks, and **adding** new
`SmokeSnaps` jobs (sharded) to the existing Android/iOS E2E smoke
workflows and reports.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
0f77286. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent e98fbb5 commit 60e51d2
40 files changed
Lines changed: 5732 additions & 504 deletions
File tree
- .github/workflows
- app
- constants
- core/Engine/controllers/snaps
- lib/snaps
- tests
- api-mocking/mock-responses/defaults
- smoke/snaps
- tools/e2e-ai-analyzer
- modes
- generate-test-plan
- select-tags
- skills
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
613 | 613 | | |
614 | 614 | | |
615 | 615 | | |
616 | | - | |
617 | | - | |
618 | | - | |
619 | | - | |
620 | | - | |
621 | | - | |
622 | | - | |
623 | | - | |
624 | | - | |
625 | | - | |
626 | | - | |
627 | | - | |
628 | | - | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | | - | |
633 | | - | |
634 | | - | |
635 | | - | |
636 | | - | |
637 | | - | |
638 | | - | |
639 | | - | |
640 | | - | |
641 | | - | |
642 | | - | |
643 | | - | |
644 | | - | |
645 | | - | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | 616 | | |
653 | 617 | | |
654 | 618 | | |
| |||
862 | 826 | | |
863 | 827 | | |
864 | 828 | | |
865 | | - | |
866 | | - | |
867 | 829 | | |
868 | 830 | | |
869 | 831 | | |
| |||
896 | 858 | | |
897 | 859 | | |
898 | 860 | | |
899 | | - | |
900 | | - | |
901 | | - | |
902 | | - | |
903 | | - | |
904 | | - | |
905 | | - | |
906 | | - | |
907 | | - | |
908 | | - | |
909 | | - | |
910 | | - | |
911 | 861 | | |
912 | 862 | | |
913 | 863 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
246 | 262 | | |
247 | 263 | | |
248 | 264 | | |
| |||
262 | 278 | | |
263 | 279 | | |
264 | 280 | | |
| 281 | + | |
265 | 282 | | |
266 | 283 | | |
267 | 284 | | |
| |||
0 commit comments