Skip to content

Commit a1b71ca

Browse files
fix broken test
1 parent c08496f commit a1b71ca

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

modules/page_object_autofill.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ def update_form_data(
190190
sample_data: AutofillAddressBase | CreditCardBase,
191191
field: str,
192192
value: str | int,
193+
region: str,
193194
):
194195
"""
195196
Update the form field with the new value.
@@ -198,6 +199,7 @@ def update_form_data(
198199
sample_data: sample data instance used to verify change.
199200
field: field being changed.
200201
value: value being added.
202+
region: region being tested.
201203
"""
202204
# updating the profile accordingly
203205
self.update_and_save(field, value)
@@ -206,7 +208,7 @@ def update_form_data(
206208
self.select_autofill_option(field)
207209

208210
# verifying the correct data
209-
self.verify_form_data(sample_data)
211+
self.verify_form_data(sample_data, region)
210212
return self
211213

212214
def verify_form_data(

tests/form_autofill/test_updating_address.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def test_update_address(
4444
# Change name field value.
4545
new_name_value = sample_data.name + " Doe"
4646
setattr(sample_data, "name", new_name_value)
47-
address_autofill.update_form_data(sample_data, "name", new_name_value)
47+
address_autofill.update_form_data(sample_data, "name", new_name_value, region)
4848

4949
# Navigate to settings
5050
about_prefs_privacy.open()

tests/form_autofill/test_updating_credit_card.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def test_update_cc_no_dupe_name(
5757
credit_card_sample_data, field, region
5858
)
5959
credit_card_autofill.update_form_data(
60-
credit_card_sample_data, field, new_field_value
60+
credit_card_sample_data, field, new_field_value, region
6161
)
6262

6363
# navigate to settings

0 commit comments

Comments
 (0)