Skip to content

Commit 2028abd

Browse files
committed
Last part of refactoring
1 parent 3bfc31c commit 2028abd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/password_manager/test_add_password_save_valid_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ def test_add_password_save_valid_data(driver: Firefox):
3636

3737
# Check password added in the listbox
3838
logins = about_logins.get_elements("login-list-item")
39-
mozilla_login = next(
40-
login for login in logins if login.get_attribute("title") == WEBSITE_ADDRESS
39+
mozilla_login = any(
40+
[login for login in logins if login.get_attribute("title") == WEBSITE_ADDRESS]
4141
)
4242
assert mozilla_login
4343

0 commit comments

Comments
 (0)