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