chore: saved_address test improved (#230)

This commit is contained in:
Anastasiya 2023-10-30 13:00:34 +03:00 committed by GitHub
parent 5f7c6c1fbf
commit 076e93d4d6
1 changed files with 3 additions and 3 deletions

View File

@ -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'