@@ -12,31 +12,30 @@ def test_case():
12
12
13
13
14
14
def test_address_yellow_highlight_on_name_organization_fields (
15
- driver : Firefox , region : str
15
+ driver : Firefox ,
16
+ region : str ,
17
+ address_autofill : AddressFill ,
18
+ util : Utilities ,
19
+ autofill_popup : AutofillPopup ,
16
20
):
17
21
"""
18
22
C2888559 - Verify the yellow highlight appears on autofilled fields for name and organization.
19
23
"""
20
24
21
- # Instantiate objects
22
- address_autofill = AddressFill (driver )
23
- address_autofill_popup = AutofillPopup (driver )
24
- util = Utilities ()
25
-
26
25
# Create fake data and fill it in
27
26
address_autofill .open ()
28
27
address_autofill_data = util .fake_autofill_data (region )
29
28
address_autofill .save_information_basic (address_autofill_data )
30
29
31
30
# Click the "Save" button
32
- address_autofill_popup .click_doorhanger_button ("save" )
31
+ autofill_popup .click_doorhanger_button ("save" )
33
32
34
33
# Double click inside name field and select a saved address entry from the dropdown
35
34
address_autofill .double_click ("form-field" , labels = ["name" ])
36
35
37
36
# Click on the first element from the autocomplete dropdown
38
- first_item = address_autofill_popup .get_nth_element (1 )
39
- address_autofill_popup .click_on (first_item )
37
+ first_item = autofill_popup .get_nth_element (1 )
38
+ autofill_popup .click_on (first_item )
40
39
41
40
# Verify the name and organization fields are highlighted
42
41
address_autofill .verify_field_yellow_highlights (
0 commit comments