Skip to content

Commit 3151c7b

Browse files
revert change
1 parent 156ee2b commit 3151c7b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/page_object_autofill.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,10 @@ def verify_autofill_data_on_hover(
446446
if field in self.preview_fields:
447447
value = self.sanitize_preview_data(field, str(value))
448448
# Check if this value exists in our CreditCardBase | AutofillAddressBase object
449-
assert value in autofill_data.__dict__.values(), (
449+
is_present = any(
450+
[value in val for val in autofill_data.__dict__.values()]
451+
)
452+
assert is_present, (
450453
f"Mismatched data: {(field, value)} not in {autofill_data.__dict__.values()}."
451454
)
452455

0 commit comments

Comments
 (0)