From 1af286e3545b87db3b50fd1679a1593a3c143a25 Mon Sep 17 00:00:00 2001 From: Anastasiya <82375995+anastasiyaig@users.noreply.github.com> Date: Mon, 30 Oct 2023 13:00:34 +0300 Subject: [PATCH] chore: saved_address test improved (#230) --- .../wallet_main_screen/test_wallet_main_saved_addresses.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/wallet_main_screen/test_wallet_main_saved_addresses.py b/tests/wallet_main_screen/test_wallet_main_saved_addresses.py index 52dcfd8..17673dc 100644 --- a/tests/wallet_main_screen/test_wallet_main_saved_addresses.py +++ b/tests/wallet_main_screen/test_wallet_main_saved_addresses.py @@ -39,6 +39,6 @@ def test_manage_saved_address(main_screen: MainWindow, name: str, address: str, wallet.left_panel.open_saved_addresses().delete_saved_address(new_name) with step('Verify that saved address with new name is not in the list of saved addresses'): - assert driver.waitFor( - lambda: new_name not in wallet.left_panel.open_saved_addresses().address_names, - configs.timeouts.UI_LOAD_TIMEOUT_MSEC), f'Address: {new_name} not found' + assert not driver.waitFor( + lambda: new_name in wallet.left_panel.open_saved_addresses().address_names, + configs.timeouts.UI_LOAD_TIMEOUT_MSEC), f'Address: {new_name} is still present'