Skip to content

test: MMQA -1712-[Mobile] Update the mobile e2e tests to account for home page redesign enabled#29100

Merged
LeVinhGithub merged 30 commits into
mainfrom
harry/MMQA-1712
May 5, 2026
Merged

test: MMQA -1712-[Mobile] Update the mobile e2e tests to account for home page redesign enabled#29100
LeVinhGithub merged 30 commits into
mainfrom
harry/MMQA-1712

Conversation

@LeVinhGithub

@LeVinhGithub LeVinhGithub commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

Description

Multiple E2E tests were disabling the homepageRedesignV1 and homepageSectionsV1 feature flags to work around the redesigned homepage UI. This caused a test/production parity gap — tests were running against the old homepage while production users see the new redesigned version.

This PR removes all homepageRedesignV1: false / homepageSectionsV1: false mock overrides and adapts the affected tests to work with the new redesigned homepage. The key change is that network switching now requires navigating to TokensFullView first (via the Tokens section header) since the network filter control bar only exists there, not on the homepage itself.

Changes

  • Removed homepageRedesignV1 and homepageSectionsV1 flag overrides from 7 test files and 1 mock helper
  • Added navigateToTokensFullView(), navigateBackFromTokensFullView(), and openNetworkManagerFromHomepage() methods to the NetworkManager page object
  • Updated network switching flows in per-dapp-selected-network, batch-transaction, stake-action-smoke, network-manager, and network-manager2 specs to go through TokensFullView
  • Added tapSelectAllPopularNetworks() steps in incoming-transactions tests to handle single-network fixtures
  • Added Sepolia-specific token fixture via withTokens() for the custom network filter test

Changelog

CHANGELOG entry: null

Related issues

Fixes: MMQA-1712

Manual testing steps

Scenario 1: Network manager tests pass with redesigned homepage

  • Given the app launches with homepage redesign feature flags enabled (production defaults)
  • When user navigates to the Tokens section from the homepage
  • Then the TokensFullView screen is displayed with a network filter control bar
  • And user can open the network manager and switch networks

Scenario 2: Incoming transactions test with single-network fixture

  • Given the app launches with only Ethereum enabled in the network map
  • When user navigates to TokensFullView and selects all popular networks
  • And user navigates back to homepage and taps the Activity tab
  • Then incoming transactions are displayed correctly

Scenario 3: Dapp per-network transaction with redesigned homepage

  • Given the app is connected to a dapp on a custom Localhost network
  • When user switches networks via TokensFullView network manager
  • Then the dapp retains its per-dapp selected network
  • And transactions are confirmed on the correct network

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

Note

Low Risk
Low risk since changes are limited to E2E test code and mocks, but it may cause CI failures if the redesigned homepage navigation or selectors change again.

Overview
Updates multiple mobile E2E smoke specs to run against the redesigned homepage defaults by removing overrides that forced homepageRedesignV1/homepageSectionsV1 off.

Introduces new NetworkManager page-object helpers to reach the network filter via TokensFullView, and rewires network-switching steps across confirmation, network-manager, stake, and incoming-transactions tests (including selecting all popular networks where single-network fixtures would hide activity).

Adjusts fixtures/mocks to match the new flows (e.g., withPopularNetworks() usage, removing explicit withNetworkEnabledMap in the mUSD fixture, and updating the mUSD happy-path assertion to the Cash section container).

Reviewed by Cursor Bugbot for commit 61dc1b7. Bugbot is set up for automated code reviews on this repo. Configure here.

@LeVinhGithub LeVinhGithub self-assigned this Apr 21, 2026
@LeVinhGithub LeVinhGithub requested a review from a team as a code owner April 21, 2026 09:12
@github-actions

Copy link
Copy Markdown
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@metamaskbotv2 metamaskbotv2 Bot added the team-qa QA team label Apr 21, 2026
@LeVinhGithub LeVinhGithub changed the title test: update account for homepage redesign with ff enabled test: MMQA -1712-[Mobile] Update the mobile e2e tests to account for home page redesign enabled Apr 21, 2026
@github-actions github-actions Bot added size-M risk-medium Moderate testing recommended · Possible bug introduction risk labels Apr 21, 2026
Comment thread tests/smoke/networks/network-manager.spec.ts Outdated
Comment thread tests/smoke/networks/network-manager2.spec.ts
Comment thread tests/smoke/networks/network-manager.spec.ts
@github-actions github-actions Bot added risk-medium Moderate testing recommended · Possible bug introduction risk and removed risk-medium Moderate testing recommended · Possible bug introduction risk labels Apr 21, 2026
Comment thread tests/smoke/wallet/incoming-transactions.spec.ts
@github-actions github-actions Bot added risk-medium Moderate testing recommended · Possible bug introduction risk and removed risk-medium Moderate testing recommended · Possible bug introduction risk labels Apr 21, 2026
@github-actions github-actions Bot added risk-medium Moderate testing recommended · Possible bug introduction risk and removed risk-medium Moderate testing recommended · Possible bug introduction risk labels Apr 22, 2026
@github-actions github-actions Bot added risk-medium Moderate testing recommended · Possible bug introduction risk and removed risk-medium Moderate testing recommended · Possible bug introduction risk labels Apr 22, 2026
@github-actions github-actions Bot added risk-medium Moderate testing recommended · Possible bug introduction risk and removed risk-medium Moderate testing recommended · Possible bug introduction risk labels Apr 22, 2026
@github-actions github-actions Bot added the risk:medium AI analysis: medium risk label Apr 22, 2026
@github-actions github-actions Bot removed the risk:medium AI analysis: medium risk label Apr 23, 2026
Comment thread tests/page-objects/wallet/WalletView.ts Outdated

@cortisiko cortisiko left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@LeVinhGithub the PR looks good, but there are failing tests. can you have a look when you get a chance ?

Comment thread tests/smoke/networks/network-manager2.spec.ts
@LeVinhGithub LeVinhGithub requested a review from cortisiko May 1, 2026 12:51
@LeVinhGithub LeVinhGithub enabled auto-merge May 1, 2026 12:51

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 704e112. Configure here.

Comment thread tests/smoke/networks/network-manager.spec.ts
@github-actions

github-actions Bot commented May 5, 2026

Copy link
Copy Markdown
Contributor

🔍 Smart E2E Test Selection

  • Selected E2E tags: SmokeConfirmations, SmokeNetworkAbstractions, SmokeStake, SmokeWalletPlatform
  • Selected Performance tags: None (no tests recommended)
  • Risk Level: medium
  • AI Confidence: 92%
click to see 🤖 AI reasoning details

E2E Test Selection:
All 12 changed files are E2E test infrastructure files (page objects, mock responses, test specs). No production app code was changed.

Changed files breakdown:

  1. tests/page-objects/wallet/NetworkManager.ts - Added 3 new navigation helper methods (navigateToTokensFullView, navigateBackFromTokensFullView, openNetworkManagerFromHomepage) to support the redesigned homepage where the network filter control only exists in TokensFullView. This page object is used by: network-manager specs (SmokeNetworkAbstractions), stake-action-smoke (SmokeStake), incoming-transactions (SmokeWalletPlatform), per-dapp-selected-network (SmokeConfirmations), and batch-transaction (SmokeConfirmations).

  2. tests/page-objects/wallet/WalletView.ts - Added cashGetMusdContainer getter for mUSD empty state CTA. Used by musd-conversion-happy-path (SmokeWalletPlatform).

  3. tests/api-mocking/mock-responses/musd/musd-mocks.ts - Removed homepageRedesignV1 and homepageSectionsV1 feature flag overrides from mUSD mock setup. This means mUSD tests now run with these flags at their default/real values (likely enabled), which is a behavioral change for mUSD test scenarios (SmokeWalletPlatform).

  4. Test spec files changed:

    • send-btc-token.spec.ts → SmokeConfirmations
    • batch-transaction.spec.ts → SmokeConfirmations
    • per-dapp-selected-network.spec.ts → SmokeConfirmations
    • network-manager.spec.ts → SmokeNetworkAbstractions
    • network-manager2.spec.ts → SmokeNetworkAbstractions
    • stake-action-smoke.spec.ts → SmokeStake
    • incoming-transactions.spec.ts → SmokeWalletPlatform
    • musd-conversion-happy-path.spec.ts → SmokeWalletPlatform
    • musd-fixture.ts → helper for SmokeWalletPlatform mUSD tests

Tag selection rationale:

  • SmokeConfirmations: Directly modified test specs (send-btc-token, batch-transaction, per-dapp-selected-network) plus NetworkManager page object used in these tests.
  • SmokeNetworkAbstractions: Directly modified test specs (network-manager, network-manager2) plus NetworkManager page object changes.
  • SmokeStake: Directly modified test spec (stake-action-smoke) uses new NetworkManager methods. Per tag description, SmokeStake flows also require SmokeConfirmations (already selected).
  • SmokeWalletPlatform: Directly modified test specs (incoming-transactions, musd-conversion-happy-path) plus WalletView and musd-mocks changes.

No performance-impacting app code was changed - all changes are test infrastructure only.

Performance Test Selection:
All changes are confined to E2E test infrastructure files (page objects, mock responses, test specs). No production app code was modified, so there is no performance impact on the app itself. Performance tests are not warranted.

View GitHub Actions results

@sonarqubecloud

sonarqubecloud Bot commented May 5, 2026

Copy link
Copy Markdown

@LeVinhGithub LeVinhGithub added this pull request to the merge queue May 5, 2026
Merged via the queue into main with commit dd0a6ab May 5, 2026
99 of 102 checks passed
@LeVinhGithub LeVinhGithub deleted the harry/MMQA-1712 branch May 5, 2026 11:07
@github-actions github-actions Bot locked and limited conversation to collaborators May 5, 2026
@metamaskbotv2 metamaskbotv2 Bot added the release-7.77.0 Issue or pull request that will be included in release 7.77.0 label May 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-7.77.0 Issue or pull request that will be included in release 7.77.0 risk:high AI analysis: high risk risk-medium Moderate testing recommended · Possible bug introduction risk size-M team-qa QA team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants