Skip to content

Commit

Permalink
TST: fix detox e2e after upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
Overtorment committed Jan 14, 2024
1 parent 6f757d5 commit 62b7a6f
Show file tree
Hide file tree
Showing 6 changed files with 172 additions and 14 deletions.
175 changes: 163 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
"coinselect": "3.1.13",
"crypto-js": "4.2.0",
"dayjs": "1.11.10",
"detox": "20.13.1",
"detox": "20.15.0",
"ecpair": "2.0.1",
"ecurve": "1.0.6",
"electrum-client": "https://github.com/BlueWallet/rn-electrum-client#76c0ea35e1a50c47f3a7f818d529ebd100161496",
Expand Down
2 changes: 2 additions & 0 deletions scripts/build-release-apk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,7 @@ TIMESTAMP=$(date +%s)
sed -i'.original' "s/versionCode 1/versionCode $TIMESTAMP/g" app/build.gradle
./gradlew assembleRelease
mv ./app/build/outputs/apk/release/app-release-unsigned.apk ./app/build/outputs/apk/release/app-release.apk
echo wheres waldo?
find $ANDROID_HOME | grep apksigner | grep -v jar
$ANDROID_HOME/build-tools/30.0.2/apksigner sign --ks ./bluewallet-release-key.keystore --ks-pass=pass:$KEYSTORE_PASSWORD ./app/build/outputs/apk/release/app-release.apk

3 changes: 3 additions & 0 deletions tests/e2e/bluewallet.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ describe('BlueWallet UI Tests - no wallets', () => {

for (const ur of urs) {
// tapping 5 times invisible button is a backdoor:
await sleep(5000); // wait for camera screen to initialize
for (let c = 0; c <= 5; c++) {
await element(by.id('ScanQrBackdoorButton')).tap();
}
Expand Down Expand Up @@ -525,6 +526,7 @@ describe('BlueWallet UI Tests - no wallets', () => {

for (const ur of ursSignedByPassport) {
// tapping 5 times invisible button is a backdoor:
await sleep(5000); // wait for camera screen to initialize
for (let c = 0; c <= 5; c++) {
await element(by.id('ScanQrBackdoorButton')).tap();
}
Expand All @@ -545,6 +547,7 @@ describe('BlueWallet UI Tests - no wallets', () => {

for (const ur of urSignedByPassportAndKeystone) {
// tapping 5 times invisible button is a backdoor:
await sleep(5000); // wait for camera screen to initialize
for (let c = 0; c <= 5; c++) {
await element(by.id('ScanQrBackdoorButton')).tap();
}
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/bluewallet2.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ describe('BlueWallet UI Tests - import BIP84 wallet', () => {

await device.launchApp({
newInstance: true,
url: 'bitcoin:BC1QH6TF004TY7Z7UN2V5NTU4MKF630545GVHS45U7\\?amount=0.0001\\&label=Yo',
url: 'bitcoin:BC1QH6TF004TY7Z7UN2V5NTU4MKF630545GVHS45U7?amount=0.0001&label=Yo',
});

// setting fee rate:
Expand Down
2 changes: 2 additions & 0 deletions tests/e2e/bluewallet3.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ describe('BlueWallet UI Tests - import Watch-only wallet (zpub)', () => {
'UR:CRYPTO-PSBT/HDWTJOJKIDJYZMADAEGOAOAEAEAEADLFIAYKFPTOTIHSMNDLJTLFTYPAHTFHZESOAODIBNADFDCPFZZEKSSTTOJYKPRLJOAEAEAEAEAEZMZMZMZMADNBDSAEAEAEAEAEAECFKOPTBBCFBGNTGUVAEHNDPECFUYNBHKRNPMCMJNYTBKROYKLOPSAEAEAEAEAEADADCTBEDIAEAEAEAEAEAECMAEBBFTZSECYTJZTEKGOEKECAVOGHMTVWGYIAMHCSKOSWADAYJEAOFLDYFYAOCXGEUTDNBDTNMKTOQDLASKMTTSCLCSHPOLGDBEHDBBZMNERLRFSFIDLTMHTLMTLYWKAOCXFRBWHGOSGYRLYKTSSSSSIEWDZOVOSTFNISKTBYCLLRLRHSHFCMSGTTVDRHURNSOLADCLAXENRDWMCPOTZMHKGMFPNTHLMNDMCETOHLOXTANDAMEOTSURLFHHPLTSDPCSJTWSGAAEAEDLFPLTSW';

// tapping 5 times invisible button is a backdoor:
await sleep(5000); // wait for camera screen to initialize
for (let c = 0; c <= 5; c++) {
await element(by.id('ScanQrBackdoorButton')).tap();
await sleep(1000);
Expand All @@ -76,6 +77,7 @@ describe('BlueWallet UI Tests - import Watch-only wallet (zpub)', () => {
await element(by.id('PsbtTxScanButton')).tap(); // opening camera

// tapping 5 times invisible button is a backdoor:
await sleep(5000); // wait for camera screen to initialize
for (let c = 0; c <= 5; c++) {
await element(by.id('ScanQrBackdoorButton')).tap();
await sleep(1000);
Expand Down

0 comments on commit 62b7a6f

Please sign in to comment.