Skip to content

Commit

Permalink
Merge pull request #255 from nodlesh/fix-crash-on-restart-pin
Browse files Browse the repository at this point in the history
Fix pin page crash in bc wallet automation
  • Loading branch information
nodlesh authored Oct 3, 2024
2 parents f14aa1e + cadc58b commit 64dba03
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions aries-mobile-tests/features/steps/bc_wallet/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import json
import os
from decouple import config
from time import sleep

# Local Imports
from agent_controller_client import agent_controller_GET, agent_controller_POST, expected_agent_state, setup_already_connected
Expand Down Expand Up @@ -155,6 +156,9 @@ def step_impl(context):
@when('they relaunch the app')
def step_impl(context):
context.driver.activate_app(context.driver.capabilities[get_package_or_bundle_id(context)])
# There is a crash issue in the automation when entering the pin right after a restart.
# wait 5 seconds to stop the crashing or minimize at least.
sleep(5)

def get_package_or_bundle_id(context):
if context.driver.capabilities['platformName'] == 'iOS':
Expand Down
2 changes: 1 addition & 1 deletion aries-mobile-tests/sl_ios_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"autoAcceptAlerts": true,
"autoDismissAlerts": true,
"automationName": "xcuitest",
"platformVersion": "16.7|13.7|14.8|15.7.5"
"platformVersion": "18|17.7|16.7|13.7|14.8|15.8"
},
"sauce:options": {
"appiumVersion": "latest",
Expand Down

0 comments on commit 64dba03

Please sign in to comment.