Skip to content

Commit 009c09a

Browse files
runway-github[bot]christopherferreira9cortisiko
authored
chore(runway): cherry-pick fix: fixes account related failures in wallet platform and identity tests (#17920)
- fix: fixes account related failures in wallet platform and identity tests (#17863) <!-- Please submit this PR as a draft initially. Do not mark it as "Ready for review" until the template has been completely filled out, and PR status checks have passed at least once. --> ## **Description** This PR is aimed at fixing the identity and wallet platform workflows as it pertains to the updated accounts UI. See test runs specifically for the mentioned workflows: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/c4e05ff8-7ed4-4025-ba6b-38df88800e54 Keep in mind, on [main](https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/3135cb99-523f-4933-a53c-267c454fd306) there are a few other failing workflows which will be addressed in a follow up. <!-- Write a short description of the changes included in this pull request, also include relevant motivation and context. Have in mind the following questions: 1. What is the reason for the change? 2. What is the improvement/solution? --> ## **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: ## **Related issues** Fixes: ## **Manual testing steps** 1. Go to this page... 2. 3. ## **Screenshots/Recordings** <!-- If applicable, add screenshots and/or recordings to visualize the before and after of your change. --> ### **Before** <!-- [screenshots/recordings] --> ### **After** <!-- [screenshots/recordings] --> ## **Pre-merge author checklist** - [ ] I’ve followed [MetaMask Contributor Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile Coding Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md). - [ ] I've completed the PR template to the best of my ability - [ ] I’ve included tests if applicable - [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [ ] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. ## **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. --------- Co-authored-by: Curtis David <[email protected]> [93b0b74](93b0b74) Co-authored-by: Christopher Ferreira <[email protected]> Co-authored-by: Curtis David <[email protected]>
1 parent 5faaa19 commit 009c09a

File tree

4 files changed

+14
-16
lines changed

4 files changed

+14
-16
lines changed

e2e/specs/identity/account-syncing/adding-and-renaming-accounts.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ describe(
138138
await AccountListBottomSheet.tapEditAccountActionsAtIndex(1);
139139
await AccountActionsBottomSheet.renameActiveAccount(NEW_ACCOUNT_NAME);
140140

141-
// Add another new EVM account
142-
await WalletView.tapIdenticon();
141+
// Bottom sheet remains open after renaming account
142+
// await WalletView.tapIdenticon();
143143
await AccountListBottomSheet.tapAddAccountButton();
144144
await AddAccountBottomSheet.tapCreateEthereumAccount();
145145

e2e/specs/identity/account-syncing/sync-after-forgot-password.spec.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ describe(SmokeIdentity('Account syncing - Forgot Password Flow'), () => {
5050
await AddAccountBottomSheet.tapCreateEthereumAccount();
5151
await AccountListBottomSheet.tapEditAccountActionsAtIndex(0);
5252
await AccountActionsBottomSheet.renameActiveAccount(NEW_ACCOUNT_NAME);
53-
await WalletView.tapIdenticon();
5453
const visibleAccounts = [NEW_ACCOUNT_NAME, SECOND_ACCOUNT_NAME];
5554
for (const accountName of visibleAccounts) {
5655
await Assertions.expectElementToBeVisible(
@@ -96,12 +95,9 @@ describe(SmokeIdentity('Account syncing - Forgot Password Flow'), () => {
9695
const visibleAccounts = [NEW_ACCOUNT_NAME, SECOND_ACCOUNT_NAME];
9796

9897
for (const accountName of visibleAccounts) {
99-
await Assertions.expectElementToBeVisible(
100-
AccountListBottomSheet.getAccountElementByAccountName(accountName),
101-
{
102-
description: `Account with name "${accountName}" should be visible`,
103-
},
104-
);
98+
await Assertions.expectTextDisplayed(accountName, {
99+
description: `Account with name "${accountName}" should be visible`,
100+
});
105101
}
106102
},
107103
);

e2e/specs/multisrp/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import AddAccountBottomSheet from '../../pages/wallet/AddAccountBottomSheet';
44
import WalletView from '../../pages/wallet/WalletView';
55
import Assertions from '../../framework/Assertions.ts';
66
import SRPListItemComponent from '../../pages/wallet/MultiSrp/Common/SRPListItemComponent';
7-
import AccountActionsBottomSheet from '../../pages/wallet/AccountActionsBottomSheet';
87
import SrpQuizModal from '../../pages/Settings/SecurityAndPrivacy/SrpQuizModal';
98
import RevealSecretRecoveryPhrase from '../../pages/Settings/SecurityAndPrivacy/RevealSecretRecoveryPhrase';
109
import { RevealSeedViewSelectorsText } from '../../selectors/Settings/SecurityAndPrivacy/RevealSeedView.selectors';
1110
import TabBarComponent from '../../pages/wallet/TabBarComponent';
1211
import SettingsView from '../../pages/Settings/SettingsView';
1312
import SecurityAndPrivacyView from '../../pages/Settings/SecurityAndPrivacy/SecurityAndPrivacyView';
13+
import AccountDetails from '../../pages/MultichainAccounts/AccountDetails.ts';
1414

1515
const PASSWORD = '123123123';
1616

@@ -59,7 +59,7 @@ export const goToAccountActions = async (accountIndex: number) => {
5959
await WalletView.tapIdenticon();
6060
await Assertions.expectElementToBeVisible(AccountListBottomSheet.accountList);
6161
await AccountListBottomSheet.tapEditAccountActionsAtIndex(accountIndex);
62-
await AccountActionsBottomSheet.tapShowSRP();
62+
await AccountDetails.tapExportSrpButton();
6363
};
6464

6565
export const startExportForKeyring = async (keyringId: string) => {

e2e/specs/solana/create-solana-account.spec.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ import AccountActionsBottomSheet from '../../pages/wallet/AccountActionsBottomSh
99
import RevealSecretRecoveryPhrase from '../../pages/Settings/SecurityAndPrivacy/RevealSecretRecoveryPhrase';
1010
import RevealPrivateKey from '../../pages/Settings/SecurityAndPrivacy/RevealPrivateKeyView';
1111
import AddNewHdAccountComponent from '../../pages/wallet/MultiSrp/AddAccountToSrp/AddNewHdAccountComponent';
12-
import EditAccountNameView from '../../pages/wallet/EditAccountNameView';
1312
import SolanaNewFeatureSheet from '../../pages/wallet/SolanaNewFeatureSheet';
1413
import { withFixtures } from '../../framework/fixtures/FixtureHelper';
14+
import AccountDetails from '../../pages/MultichainAccounts/AccountDetails';
15+
import EditAccountName from '../../pages/MultichainAccounts/EditAccountName';
1516

1617
const ACCOUNT_ONE_TEXT = 'Solana Account 1';
1718
const ACCOUNT_TWO_TEXT = 'Solana Account 2';
@@ -89,11 +90,12 @@ describe(SmokeNetworkExpansion('Create Solana account'), () => {
8990

9091
await WalletView.tapIdenticon();
9192
await AccountListBottomSheet.tapEditAccountActionsAtIndex(1);
92-
await AccountActionsBottomSheet.tapEditAccount();
93-
await EditAccountNameView.updateAccountName(NEW_ACCOUNT_NAME);
94-
await EditAccountNameView.tapSave();
93+
await AccountDetails.tapEditAccountName();
94+
await EditAccountName.updateAccountName(NEW_ACCOUNT_NAME);
95+
await EditAccountName.tapSave();
96+
await Assertions.expectTextDisplayed(NEW_ACCOUNT_NAME);
97+
await AccountDetails.tapBackButton();
9598
await WalletView.tapIdenticon();
96-
9799
await Assertions.expectTextDisplayed(NEW_ACCOUNT_NAME);
98100
},
99101
);

0 commit comments

Comments
 (0)