Skip to content
Closed

4.0.0 #151

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
392594f
fix: purchase text different platform
N3TC4T Nov 28, 2024
02b1eb5
chore: bump build number
N3TC4T Nov 28, 2024
0431722
chore: fix token filter header visibility
N3TC4T Nov 28, 2024
bfb4207
fix: ignore ready command on xapp load error
N3TC4T Nov 28, 2024
7245a0c
chore: v3.3.0
N3TC4T Jan 11, 2025
bb76509
feat: add requestInAppPurchase xApp command
N3TC4T Jan 11, 2025
b75ed5c
feat: add HookExplainer to payload review screen
N3TC4T Jan 11, 2025
18d85f4
fix: correct encryption migration text/image
N3TC4T Jan 11, 2025
bb58974
fix: revert removed change log modal view after update
N3TC4T Jan 11, 2025
bcf978b
feat: add presented account access level and account type details to …
N3TC4T Jan 13, 2025
0d1f430
fix: network definitions update
N3TC4T Jan 13, 2025
a099ba8
feat: add Multi-Purpose Token transactions
N3TC4T Jan 14, 2025
a279710
feat: add NFTokenMintOffer amendment
N3TC4T Jan 14, 2025
c14297a
fix: Event list pending amount color
N3TC4T Jan 14, 2025
5618929
feat: add Credentials amendment
N3TC4T Jan 15, 2025
99b291b
fix: dtag detection on send flow: more requirements
N3TC4T Jan 15, 2025
f9d8750
fixup! feat: add presented account access level and account type deta…
N3TC4T Jan 15, 2025
1f20a0f
fix: account update on transactions which effects account settings
N3TC4T Jan 15, 2025
5d951c8
feat: Multisign SignAs where user has set RegularKey
N3TC4T Jan 15, 2025
4978f24
fix: fallback to normal fee calculation if invalid tx_blob
N3TC4T Jan 15, 2025
ea631fd
fix: when sign a payload load all signable accounts and ignore activa…
N3TC4T Jan 16, 2025
c878ca8
fix: update all accounts details on network connect
N3TC4T Jan 16, 2025
16491c2
fixup! fix: fallback to normal fee calculation if invalid tx_blob
N3TC4T Jan 16, 2025
a1dd25e
fixup! fix: update all accounts details on network connect
N3TC4T Jan 16, 2025
d3a1e8a
fixup! fix: network definitions update
N3TC4T Jan 16, 2025
5ca14f9
fix: live check for account activation status before sign payload
N3TC4T Jan 17, 2025
78bc5d9
fix: when adding TrustLine a warning should only show on tokens with …
N3TC4T Jan 17, 2025
fb1f5ed
chore: e2e tests
N3TC4T Jan 18, 2025
6c6375d
fixup! chore: e2e tests
N3TC4T Jan 18, 2025
9756466
fix: small ui sync crashes
N3TC4T Jan 18, 2025
e85c86f
fix(android): BlurView dependency
N3TC4T Jan 21, 2025
0ff71ca
feat: upgrade xrpl-accountlib
N3TC4T Jan 21, 2025
e7370ad
fix: CountDown finish check if component is mounted
N3TC4T Jan 21, 2025
9259641
feat: add fallback to empty object for transaction flags
N3TC4T Jan 21, 2025
ea1ba78
fix: clear Monetization state after success payment
N3TC4T Jan 21, 2025
debeff4
3.3.3 build 62 - beta
WietseWind Feb 14, 2025
40042ba
4.0.0 RC
WietseWind Mar 7, 2025
56da609
4.0.0 RC + Tests
WietseWind Mar 7, 2025
0d1dd22
Update ios.yml
WietseWind Mar 9, 2025
88e3968
Update ios.yml
WietseWind Mar 9, 2025
42f666d
Update ios.yml
WietseWind Mar 9, 2025
52e1353
xcresult ios workdir
WietseWind Mar 10, 2025
e0f8e91
Build 82 + fix tests
WietseWind Mar 10, 2025
edbd9ab
Build 83
WietseWind Mar 10, 2025
3c1669a
slidoapp/xcresulttool@v3.1.0 supports xcode 16
WietseWind Mar 10, 2025
058a89b
Fix Jest on JSON error test
WietseWind Mar 10, 2025
20dc315
Minor UI fixes post 4.0.0
WietseWind Mar 11, 2025
ac27c62
401 85
WietseWind Mar 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .detoxrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
'ios.simulator': {
type: 'ios.simulator',
headless: process.env.CI ? true : undefined,
device: { type: 'iPhone 15 Pro' },
device: { type: 'iPhone 16 Pro' },
},
'android.emulator': {
type: 'android.apk',
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/prepare-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ runs:
- name: Node
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 20.x

- name: Cache node_modules/
uses: actions/cache@v4
Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: [ self-hosted, macOS, ARM64 ]
strategy:
matrix:
ios: [ 17.4 ]
ios: [ 18.3.1 ]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -29,10 +29,17 @@ jobs:
- name: Run tests
working-directory: ios
run: |
xcodebuild -quiet -workspace Xaman.xcworkspace -scheme Xaman -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 15,OS=${{ matrix.ios }}' -resultBundlePath TestResults test

xcodebuild -quiet -workspace Xaman.xcworkspace -scheme Xaman -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 16 Pro,OS=${{ matrix.ios }}' -resultBundlePath TestResults.xcresult test
echo "Exit code: $?"

- name: Check for xcresult
working-directory: ios
run: |
ls -la
if [ -d "TestResults.xcresult" ]; then echo "Found TestResults.xcresult"; else echo "TestResults.xcresult not found"; fi

- name: Test Summary
uses: kishikawakatsumi/xcresulttool@v1
uses: slidoapp/xcresulttool@v3.1.0
with:
path: ios/TestResults.xcresult
if: success() || failure()
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,8 @@ e2e/artifacts/*

# Temporary files created by Metro to check the health of the file watcher
.metro-health-check*

# Imageprepare scripts
scripts/imageprepare-app/*.svg
scripts/imageprepare-app/*.png
scripts/imageprepare-app/*/*
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

OS := $(shell sh -c 'uname -s 2>/dev/null')
VARIANT ?= Debug
SIMULATOR ?= iPhone 15 Pro Max
SIMULATOR ?= iPhone 16 Pro Max
DETOX_CONFIGURATION ?= ios.simulator+xaman.ios

# Function definitions ============================
Expand Down Expand Up @@ -118,12 +118,15 @@ build-android: | stop .pre-run .pre-android ## Build the Android app
test: | .pre-run
@npm run test

test-e2e: | .pre-run ## Runs e2e tests
test-e2e: ## Runs e2e tests
@npx detox clean-framework-cache;
@npx detox build-framework-cache;
@npx detox build e2e --configuration ${DETOX_CONFIGURATION} --if-missing;
@npx detox build e2e --configuration ${DETOX_CONFIGURATION};
@npx cucumber-js ./e2e test;

retest-e2e: ## Runs e2e tests
@DETOX_LOGLEVEL=trace DETOX_REUSE=yes npx cucumber-js ./e2e test;

bump-build-number: ## Bump build number for Android and iOS
@./scripts/bump-build-number.sh;

Expand Down
28 changes: 28 additions & 0 deletions Xaman.xctestplan
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"configurations" : [
{
"id" : "2E1A5BBE-F248-49BB-8B0E-F17B20BBA391",
"name" : "Test Scheme Action",
"options" : {

}
}
],
"defaultOptions" : {
"targetForVariableExpansion" : {
"containerPath" : "container:Xaman.xcodeproj",
"identifier" : "13B07F861A680F5B00A75B9A",
"name" : "Xaman"
}
},
"testTargets" : [
{
"target" : {
"containerPath" : "container:Xaman.xcodeproj",
"identifier" : "00E356ED1AD99517003FC87E",
"name" : "XamanTests"
}
}
],
"version" : 1
}
19 changes: 15 additions & 4 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ apply plugin: "com.google.firebase.crashlytics"

import com.android.build.OutputFile

def canonicalVersionName = "3.2.0"
def canonicalVersionCode = 34
def canonicalVersionName = "4.0.0"
def canonicalVersionCode = 85

// NOTE: DO NOT change postFixSize value, this is for handling legacy method for handling the versioning in android
def postFixSize = 30_000
Expand Down Expand Up @@ -123,11 +123,22 @@ android {
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}

bundle {
language {
enableSplit = true
}
density {
enableSplit = true
}
abi {
enableSplit = true
}
}
splits {
abi {
reset()
enable enableSeparateBuildPerCPUArchitecture
universalApk false // If true, also generate a universal APK
universalApk true // If true, also generate a universal APK
include(*reactNativeArchitectures())
}
}
Expand Down Expand Up @@ -213,7 +224,7 @@ dependencies {
// qrcode generate
implementation 'com.github.kenglxn.QRGen:android:2.6.0'
// blur view
implementation 'com.github.Dimezis:BlurView:version-2.0.2'
implementation 'com.github.Dimezis:BlurView:version-2.0.6'
// WebView
implementation 'androidx.webkit:webkit:1.11.0'
// inApp purchase
Expand Down
Binary file modified android/app/src/main/res/drawable-hdpi/background_pattern.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/drawable-hdpi/background_shapes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android/app/src/main/res/drawable-hdpi/create.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/drawable-hdpi/formerly_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/drawable-hdpi/icon_fingerprint.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android/app/src/main/res/drawable-hdpi/icon_swap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/drawable-hdpi/icon_tabbar_events.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/drawable-hdpi/icon_tabbar_home.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/drawable-hdpi/icon_tabbar_settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/drawable-hdpi/icon_tabbar_xapp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android/app/src/main/res/drawable-hdpi/tangem.png
Binary file modified android/app/src/main/res/drawable-mdpi/background_pattern.png
Binary file modified android/app/src/main/res/drawable-mdpi/background_shapes.png
Binary file added android/app/src/main/res/drawable-mdpi/create.png
Binary file modified android/app/src/main/res/drawable-mdpi/formerly_logo.png
Binary file modified android/app/src/main/res/drawable-mdpi/icon_fingerprint.png
Binary file added android/app/src/main/res/drawable-mdpi/icon_swap.png
Binary file modified android/app/src/main/res/drawable-mdpi/icon_tabbar_events.png
Binary file modified android/app/src/main/res/drawable-mdpi/icon_tabbar_home.png
Binary file modified android/app/src/main/res/drawable-mdpi/icon_tabbar_settings.png
Binary file modified android/app/src/main/res/drawable-mdpi/icon_tabbar_xapp.png
Binary file modified android/app/src/main/res/drawable-mdpi/splash_screen_patterns.png
Binary file added android/app/src/main/res/drawable-mdpi/tangem.png
Binary file modified android/app/src/main/res/drawable-xhdpi/background_pattern.png
Binary file modified android/app/src/main/res/drawable-xhdpi/background_shapes.png
Binary file added android/app/src/main/res/drawable-xhdpi/create.png
Binary file modified android/app/src/main/res/drawable-xhdpi/formerly_logo.png
Binary file modified android/app/src/main/res/drawable-xhdpi/icon_fingerprint.png
Binary file modified android/app/src/main/res/drawable-xhdpi/icon_tabbar_events.png
Binary file modified android/app/src/main/res/drawable-xhdpi/icon_tabbar_home.png
Binary file modified android/app/src/main/res/drawable-xhdpi/icon_tabbar_xapp.png
Binary file added android/app/src/main/res/drawable-xhdpi/tangem.png
Binary file modified android/app/src/main/res/drawable-xxhdpi/background_pattern.png
Binary file modified android/app/src/main/res/drawable-xxhdpi/background_shapes.png
Binary file added android/app/src/main/res/drawable-xxhdpi/create.png
Binary file modified android/app/src/main/res/drawable-xxhdpi/formerly_logo.png
Binary file modified android/app/src/main/res/drawable-xxhdpi/icon_fingerprint.png
Binary file modified android/app/src/main/res/drawable-xxhdpi/icon_tabbar_events.png
Binary file modified android/app/src/main/res/drawable-xxhdpi/icon_tabbar_home.png
Binary file modified android/app/src/main/res/drawable-xxhdpi/icon_tabbar_xapp.png
Binary file modified android/app/src/main/res/drawable-xxxhdpi/background_shapes.png
Binary file modified android/app/src/main/res/drawable-xxxhdpi/formerly_logo.png
Binary file modified android/app/src/main/res/drawable-xxxhdpi/icon_fingerprint.png
Binary file modified android/app/src/main/res/drawable-xxxhdpi/icon_tabbar_home.png
Binary file modified android/app/src/main/res/drawable-xxxhdpi/icon_tabbar_xapp.png
Binary file added android/app/src/main/res/drawable/pincode.png
17 changes: 10 additions & 7 deletions android/app/src/main/res/layout/activity_splash.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:fitsSystemWindows="true"
android:background="@color/splash_screen_background"
>
<ImageView
Expand All @@ -14,11 +15,13 @@
android:scaleType="centerCrop"
android:src="@drawable/splash_screen_patterns" />

<ImageView
android:layout_width="200dp"
android:layout_height="200dp"
android:layout_centerInParent="true"
android:contentDescription="@string/splash_screen_foreground"
android:scaleType="fitCenter"
android:src="@drawable/formerly_logo" />
<ImageView
android:layout_width="200dp"
android:layout_height="200dp"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="50dp"
android:contentDescription="@string/splash_screen_foreground"
android:scaleType="fitCenter"
android:src="@drawable/formerly_logo" />
</RelativeLayout>
2 changes: 2 additions & 0 deletions android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
<!-- <background android:drawable="@android:color/transparent"/> -->
<!-- <foreground android:drawable="@android:color/transparent"/> -->
</adaptive-icon>
2 changes: 1 addition & 1 deletion android/app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<item name="splash_screen_background" type="color">#FFFFFF</item>
<item name="splash_screen_background" type="color">#1129C1</item>
<item name="push_notification" type="color">#4494D3</item>
</resources>
10 changes: 8 additions & 2 deletions android/app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,17 @@
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="android:textColor">#000000</item>
<item name="android:windowBackground">#1129C1</item>
<item name="android:editTextBackground">@drawable/rn_edit_text_material</item>
<item name="android:navigationBarColor">@android:color/transparent</item>
<!-- <item name="android:navigationBarColor">@android:color/transparent</item> -->
<item name="android:navigationBarColor">#1129C1</item>
<item name="android:statusBarColor">#1129C1</item>
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
<item name="android:windowFullscreen">false</item>
<item name="android:fitsSystemWindows">false</item>
</style>


<!-- General theme for the ActionSheet -->
<style name="DialogListItemStyle">
<item name="android:layout_width">match_parent</item>
Expand Down
2 changes: 0 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
import groovy.json.JsonSlurper


buildscript {
ext {
buildToolsVersion = "34.0.0"
Expand Down Expand Up @@ -44,7 +43,6 @@ allprojects {
google()
maven { url 'https://jitpack.io' }
maven { url "https://cdn.veriff.me/android/" } // veriff

}
}

Expand Down
9 changes: 5 additions & 4 deletions e2e/01_setup.feature
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Feature: Setup App
Scenario: Show onboarding
Given I should have 'onboarding-screen'
Given I should see 'slider-start-button'
Then I tap 'slider-start-button'
Given I should see 'start-button'
Then I tap 'start-button'

Scenario: Setup passcode
Given I should have 'setup-passcode-screen'
Expand All @@ -11,12 +11,13 @@ Feature: Setup App
Given I should see 'pin-code-entry-view'
Then I type my passcode
Then I tap 'next-button'
# Then I tap alert button with label 'Use anyway'
Then I type my passcode
Then I tap 'next-button'

Scenario: Finish setup
Given I should wait 5 sec to see 'agreement-setup-screen'
Then I wait 5 sec for button 'confirm-button' to be enabled
Given I should wait 4 sec to see 'agreement-setup-screen'
Then I wait 4 sec for button 'confirm-button' to be enabled
Then I tap 'confirm-button'

Scenario: After setup
Expand Down
4 changes: 2 additions & 2 deletions e2e/02_generate_account.feature
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Feature: Generate Account
Then I tap 'next-button'
Given I should have 'account-generate-confirm-private-view'
Then I enter my secret number
Then I tap 'next-button'
# Then I tap 'next-button'
Given I should have 'account-generate-show-address-view'
Then I read my account address
Then I tap 'next-button'
Expand Down Expand Up @@ -73,7 +73,7 @@ Feature: Generate Account
Then I tap 'next-button'
Given I should have 'account-generate-confirm-private-view'
Then I enter my secret number
Then I tap 'next-button'
# Then I tap 'next-button'
Given I should have 'account-generate-show-address-view'
Then I read my account address
Then I tap 'next-button'
Expand Down
4 changes: 2 additions & 2 deletions e2e/03_import_account.feature
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Feature: Import Account
Then I tap 'next-button'
Then I generate new secret number
Then I enter my secret number
Then I tap 'next-button'
# Then I tap 'next-button'
Given I should have 'account-import-show-address-view'
Then I read my account address
Then I tap 'next-button'
Expand All @@ -27,7 +27,7 @@ Feature: Import Account
Then I tap 'next-button'
Given I should have 'account-import-finish-view'
Then I tap 'finish-button'
Then I tap 'tab-Home'
# Then I tap 'tab-Home'
Given I should have 'home-tab-view'
Given I should see same account address

Expand Down
10 changes: 5 additions & 5 deletions e2e/04_upgrade_account.feature
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Feature: Upgrade Account
Then I tap 'next-button'
Given I should have 'account-import-finish-view'
Then I tap 'finish-button'
Then I tap 'tab-Home'
# Then I tap 'tab-Home'
Given I should have 'home-tab-view'
Given I should see same account address

Expand All @@ -44,8 +44,8 @@ Feature: Upgrade Account
Then I tap 'next-button'
Given I should have 'account-import-finish-view'
Then I tap 'finish-button'
Given I should have 'settings-tab-screen'
Then I tap 'tab-Home'
# Given I should have 'settings-tab-screen'
# Then I tap 'tab-Home'
Given I should have 'home-tab-view'
Given I should see same account address

Expand Down Expand Up @@ -101,8 +101,8 @@ Feature: Upgrade Account
Then I tap 'next-button'
Given I should have 'account-import-finish-view'
Then I tap 'finish-button'
Given I should have 'settings-tab-screen'
Then I tap 'tab-Home'
# Given I should have 'settings-tab-screen'
# Then I tap 'tab-Home'
Given I should have 'home-tab-view'
Given I should see same account address

Expand Down
32 changes: 5 additions & 27 deletions e2e/step_definitions/account.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,32 +32,10 @@ Then('I generate new secret number', async () => {

Then('I enter my secret number', { timeout: 5 * 60 * 1000 }, async () => {
for (let r = 0; r < 8; r++) {
// get values for any column
for (let c = 0; c < 6; c++) {
const attributes = await element(by.id(`${r}.${c}`)).getAttributes();
const value = attributes.text;

let diff = Number(value) - Number(this.numbers[r][c]);

let pos = true;

if (diff < 0) {
pos = false;
}

diff = Math.abs(diff);

for (let t = 0; t < diff; t++) {
if (pos) {
await element(by.id('minus-btn')).tap();
} else {
await element(by.id('plus-btn')).tap();
}
}

await element(by.id('right-btn')).tap();
}
}
await element(by.id(`${this.numbers[r][c]}-key`)).tap();
};
};
});

Then('I read my account address', async () => {
Expand All @@ -82,15 +60,15 @@ Then('I generate testnet account', async () => {
});

Then('I enter the address in the input', async () => {
await element(by.id('address-input')).typeText(this.address);
await element(by.id('address-input')).typeText(`${this.address}\n`);
});

Then('I generate new family seed', async () => {
this.seed = generateFamilySeed();
});

Then('I enter my seed in the input', async () => {
await element(by.id('seed-input')).typeText(this.seed);
await element(by.id('seed-input')).typeText(`${this.seed}\n`);
});

Then('I generate new mnemonic', async () => {
Expand Down
Loading
Loading