File tree Expand file tree Collapse file tree 6 files changed +21
-7
lines changed Expand file tree Collapse file tree 6 files changed +21
-7
lines changed Original file line number Diff line number Diff line change 93
93
if : ${{ matrix.targetPlatform != 'StandaloneWindows64' }}
94
94
run : |
95
95
if [[ "${{ matrix.targetPlatform }}" == "StandaloneOSX" ]]; then
96
+ pip uninstall -y browserstack-sdk || true
96
97
pip install -r "sample/Tests/requirements-desktop.txt"
97
98
else
98
99
pip install -r "sample/Tests/requirements-mobile.txt"
File renamed without changes.
Original file line number Diff line number Diff line change 5
5
6
6
from alttester import *
7
7
8
+ from test import TestConfig
9
+
8
10
class MacTest (unittest .TestCase ):
9
11
10
12
altdriver = None
@@ -52,7 +54,7 @@ def test_2_device_code_connect_imx(self):
52
54
53
55
# Get address without having to click Connect to IMX button
54
56
self .altdriver .find_object (By .NAME , "GetAddressBtn" ).tap ()
55
- self .assertEqual ("0x9cb14f273de4a8c3d8e9b4c5decbb53519dfa7bd" , output .get_text ())
57
+ self .assertEqual (TestConfig . WALLET_ADDRESS , output .get_text ())
56
58
57
59
def test_3_device_code_relogin (self ):
58
60
# Select use device code auth
@@ -98,4 +100,13 @@ def test_4_device_code_reconnect(self):
98
100
99
101
# Get address without having to click Connect to IMX button
100
102
self .altdriver .find_object (By .NAME , "GetAddressBtn" ).tap ()
101
- self .assertEqual ("0x9cb14f273de4a8c3d8e9b4c5decbb53519dfa7bd" , output .get_text ())
103
+ self .assertEqual (TestConfig .WALLET_ADDRESS , output .get_text ())
104
+
105
+ def test_5_logout (self ):
106
+ # Logout
107
+ self .altdriver .find_object (By .NAME , "LogoutBtn" ).tap ()
108
+
109
+ time .sleep (10 )
110
+
111
+ # Wait for authenticated screen
112
+ self .altdriver .wait_for_current_scene_to_be ("UnauthenticatedScene" )
Original file line number Diff line number Diff line change 4
4
5
5
from alttester import *
6
6
7
+ from test import TestConfig
8
+
7
9
class WindowsTest (unittest .TestCase ):
8
10
9
11
altdriver = None
@@ -39,7 +41,7 @@ def test_2_device_code_connect_imx(self):
39
41
40
42
# Get address without having to click Connect to IMX button
41
43
self .altdriver .find_object (By .NAME , "GetAddressBtn" ).tap ()
42
- self .assertEqual ("0x7dd423aeaccfbdd3a043bb8583085c7d97032de9" , output .get_text ())
44
+ self .assertEqual (TestConfig . WALLET_ADDRESS , output .get_text ())
43
45
44
46
def test_3_device_code_relogin (self ):
45
47
# Relogin
@@ -73,4 +75,4 @@ def test_4_device_code_reconnect(self):
73
75
74
76
# Get address without having to click Connect to IMX button
75
77
self .altdriver .find_object (By .NAME , "GetAddressBtn" ).tap ()
76
- self .assertEqual ("0x7dd423aeaccfbdd3a043bb8583085c7d97032de9" , output .get_text ())
78
+ self .assertEqual (TestConfig . WALLET_ADDRESS , output .get_text ())
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ run_python_script "src/device_code_logout.py"
96
96
sleep 5
97
97
activate_sample_app " $app_name "
98
98
echo " Running Mac device code logout test..."
99
- pytest test/test_mac_device_code_logout .py
99
+ pytest test/test_device_code_logout .py
100
100
wait
101
101
close_chrome
102
102
@@ -118,7 +118,7 @@ run_python_script "src/device_code_logout.py"
118
118
sleep 5
119
119
activate_sample_app " $app_name "
120
120
echo " Running Mac device code logout test..."
121
- pytest test/test_mac_device_code_logout .py
121
+ pytest test/test_device_code_logout .py
122
122
wait
123
123
close_chrome
124
124
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ function Logout {
105
105
Bring- SampleAppToForeground
106
106
107
107
Write-Output " Running logout test..."
108
- $pytestProcess = Start-Process - FilePath " pytest" - ArgumentList " test/test_mac_device_code_logout .py" - NoNewWindow - PassThru
108
+ $pytestProcess = Start-Process - FilePath " pytest" - ArgumentList " test/test_device_code_logout .py" - NoNewWindow - PassThru
109
109
110
110
$pythonProcess | Wait-Process
111
111
You can’t perform that action at this time.
0 commit comments