Skip to content

Commit 9ebb7ea

Browse files
authored
Merge branch 'main' into ogp/22135
2 parents 1de2008 + 0c623c3 commit 9ebb7ea

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

appwright/tests/performance/login/send-flows.spec.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ test('Send flow - Ethereum, SRP 1 + SRP 2 + SRP 3', async ({
2323
device,
2424
performanceTracker,
2525
}, testInfo) => {
26+
test.setTimeout(1800000); // TODO: Investigate why this is taking so long on Android
2627
WalletAccountModal.device = device;
2728
WalletMainScreen.device = device;
2829
AccountListComponent.device = device;
@@ -53,14 +54,12 @@ test('Send flow - Ethereum, SRP 1 + SRP 2 + SRP 3', async ({
5354
await SendScreen.assetsListIsDisplayed();
5455
timer1.stop();
5556
await SendScreen.typeTokenName('Link\n');
56-
console.log('Ethereum typed, so waiting 5 seconds');
5757
await SendScreen.clickOnFirstTokenBadge();
5858
timer2.start();
5959

6060
await AmountScreen.isVisible();
6161
timer2.stop();
6262
await AmountScreen.enterAmount(TEST_AMOUNTS.ETHEREUM);
63-
6463
await AmountScreen.tapOnNextButton();
6564
timer3.start();
6665
await SendScreen.isSelectAddressScreenDisplayed();

appwright/utils/Flows.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export async function importSRPFlow(device, srp) {
115115

116116
export async function login(device, options = {}) {
117117
LoginScreen.device = device;
118-
const { skipIntro = false, scenarioType = 'login' } = options;
118+
const { scenarioType = 'login' } = options;
119119

120120
const password = getPasswordForScenario(scenarioType);
121121

@@ -149,7 +149,7 @@ export async function dismissRewardsBottomSheetModal(device) {
149149

150150
export async function dismissMultichainAccountsIntroModal(
151151
device,
152-
timeout = 5000,
152+
timeout = 10000,
153153
) {
154154
MultichainAccountEducationModal.device = device;
155155
const closeButton = await MultichainAccountEducationModal.closeButton;

wdio/screen-objects/SendScreen.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,11 @@ class SendScreen {
8181
}
8282

8383
get searchTokenField() {
84-
return AppwrightSelectors.getElementByCatchAll(this._device, 'Search tokens and NFTs');
84+
if (AppwrightSelectors.isIOS(this._device)) {
85+
return AppwrightSelectors.getElementByCatchAll(this._device, 'Search tokens and NFTs');
86+
} else {
87+
return AppwrightSelectors.getElementByID(this._device, 'textfieldsearch');
88+
}
8589
}
8690

8791

@@ -203,7 +207,7 @@ class SendScreen {
203207
}
204208

205209
async clickOnFirstTokenBadge() {
206-
const firstTokenBadge = await AppwrightSelectors.getElementByXpath(this._device, `//XCUIElementTypeOther[@name="badge-wrapper-badge"]`);
210+
const firstTokenBadge = AppwrightSelectors.isIOS(this._device) ? await AppwrightSelectors.getElementByXpath(this._device, `//XCUIElementTypeOther[@name="badge-wrapper-badge"]`) : await AppwrightSelectors.getElementByID(this._device, 'badge-wrapper-badge');
207211
appwrightExpect(firstTokenBadge).toBeVisible();
208212
await AppwrightGestures.tap(firstTokenBadge);
209213
}

0 commit comments

Comments
 (0)