77from views .sign_in_view import SignInView
88
99
10- @marks .chat
1110@marks .transaction
1211class TestCommandsMultipleDevices (MultipleDeviceTestCase ):
1312
@@ -214,12 +213,12 @@ def test_request_and_receive_stt_in_1_1_chat_offline(self):
214213
215214 @marks .testrail_id (6265 )
216215 @marks .critical
217- def test_decline_transactions_in_1_1_chat (self ):
216+ def test_decline_transactions_in_1_1_chat_push_notification_changing_state (self ):
218217 recipient = transaction_recipients ['B' ]
219218 sender = transaction_senders ['B' ]
220219 self .create_drivers (2 )
221220 device_1 , device_2 = SignInView (self .drivers [0 ]), SignInView (self .drivers [1 ])
222- home_1 = device_1 .recover_access (passphrase = sender ['passphrase' ])
221+ home_1 = device_1 .recover_access (passphrase = sender ['passphrase' ], enable_notifications = True )
223222 home_2 = device_2 .recover_access (passphrase = recipient ['passphrase' ])
224223 wallet_1 , wallet_2 = home_1 .wallet_button .click (), home_2 .wallet_button .click ()
225224 for wallet in wallet_1 , wallet_2 :
@@ -236,9 +235,14 @@ def test_decline_transactions_in_1_1_chat(self):
236235 send_transaction .confirm ()
237236 send_transaction .sign_transaction_button .click ()
238237 chat_1_sender_message = chat_1 .chat_element_by_text ('↑ Outgoing transaction' )
238+ home_1 .click_system_home_button ()
239+
240+
239241 chat_2 = home_2 .get_chat (sender ['username' ]).click ()
240242 chat_2_receiver_message = chat_2 .chat_element_by_text ('↓ Incoming transaction' )
241243 chat_2_receiver_message .decline_transaction .click ()
244+ home_1 .open_notification_bar ()
245+ home_1 .element_by_text_part ('Request address for transaction declined' ).wait_and_click ()
242246 for message in chat_1_sender_message , chat_2_receiver_message :
243247 if not message .contains_text ('Transaction declined' , 20 ):
244248 self .errors .append ('Message status is not updated to "Transaction declined" for transaction before '
@@ -260,7 +264,6 @@ def test_decline_transactions_in_1_1_chat(self):
260264 self .errors .verify_no_errors ()
261265
262266
263- @marks .chat
264267@marks .transaction
265268class TestCommandsSingleDevices (SingleDeviceTestCase ):
266269
0 commit comments