@@ -96,11 +96,6 @@ def login(cls):
96
96
cls .seleniumdriver = webdriver .Chrome (options = chrome_options )
97
97
98
98
print ("Open a window on Chrome" )
99
- < << << << HEAD
100
-
101
- wait = WebDriverWait (cls .seleniumdriver , 60 )
102
- == == == =
103
- >> >> >> > ddbff678 (test : mac pkce ui test )
104
99
105
100
wait = WebDriverWait (cls .seleniumdriver , 60 )
106
101
@@ -127,17 +122,8 @@ def login(cls):
127
122
print ("Entering OTP..." )
128
123
otp_field .send_keys (code )
129
124
130
- < << << << HEAD
131
- # Wait for success page and confirm
132
- success = WebDriverWait (cls .seleniumdriver , 60 ).until (EC .presence_of_element_located ((SeleniumBy .CSS_SELECTOR , 'h1[data-testid="device_success_title"]' )))
133
- print ("Connected to Passport!" )
134
-
135
- time .sleep (5 )
136
-
137
- == == == =
138
125
time .sleep (5 )
139
126
140
- >> >> >> > ddbff678 (test : mac pkce ui test )
141
127
cls .seleniumdriver .quit ()
142
128
143
129
@classmethod
@@ -147,21 +133,10 @@ def logout(cls):
147
133
bring_sample_app_to_foreground ()
148
134
cls .altdriver .find_object (By .NAME , "LogoutBtn" ).tap ()
149
135
time .sleep (5 )
150
- < << << << HEAD
151
- bring_sample_app_to_foreground ()
152
- == == == =
153
- >> >> >> > ddbff678 (test : mac pkce ui test )
154
136
cls .altdriver .wait_for_current_scene_to_be ("UnauthenticatedScene" )
155
137
time .sleep (2 )
156
138
cls .stop_browser ()
157
139
print ("Logged out" )
158
- < << << << HEAD
159
-
160
- def test_1_device_code_login (self ):
161
- # Select use device code auth
162
- self .altdriver .find_object (By .NAME , "DeviceCodeAuth" ).tap ()
163
- == == == =
164
- >> >> >> > ddbff678 (test : mac pkce ui test )
165
140
166
141
def test_1_login (self ):
167
142
# Wait for unauthenticated screen
@@ -183,11 +158,7 @@ def test_1_login(self):
183
158
# Wait for authenticated screen
184
159
self .altdriver .wait_for_current_scene_to_be ("AuthenticatedScene" )
185
160
print ("Logged in" )
186
- < << << << HEAD
187
-
188
- == == == =
189
161
190
- >> >> >> > ddbff678 (test : mac pkce ui test )
191
162
self .stop_browser ()
192
163
return
193
164
except Exception as err :
0 commit comments