File tree Expand file tree Collapse file tree 2 files changed +44
-2
lines changed Expand file tree Collapse file tree 2 files changed +44
-2
lines changed Original file line number Diff line number Diff line change
1
+ import pytest
2
+ from selenium .webdriver import Firefox
3
+
4
+ from modules .browser_object_autofill_popup import AutofillPopup
5
+ from modules .page_object_autofill import AddressFill
6
+ from modules .util import Utilities
7
+
8
+
9
+ @pytest .fixture ()
10
+ def test_case ():
11
+ return "2888571"
12
+
13
+
14
+ def test_demo_ad_clear_tel_email (
15
+ driver : Firefox ,
16
+ region : str ,
17
+ address_autofill : AddressFill ,
18
+ util : Utilities ,
19
+ autofill_popup : AutofillPopup
20
+ ):
21
+ """
22
+ C2888571 - Verify clear functionality after selecting an entry from tele/email fields
23
+ """
24
+
25
+ # Create fake data and fill it in
26
+ address_autofill .open ()
27
+ address_autofill_data = util .fake_autofill_data (region )
28
+ address_autofill .save_information_basic (address_autofill_data )
29
+
30
+ # Click the "Save" button
31
+ autofill_popup .click_doorhanger_button ("save" )
32
+
33
+ # List of field labels to be autofilled and verified
34
+ fields_to_test = [
35
+ "email" ,
36
+ "tel"
37
+ ]
38
+
39
+ # Loop through each field and perform the autofill test
40
+ for field in fields_to_test :
41
+ address_autofill .clear_and_verify (autofill_popup , field , address_autofill_data )
Original file line number Diff line number Diff line change 11
11
" test_demo_cc_clear_form.py" ,
12
12
" test_demo_cc_doorhanger_data_is_stored_in_about_prefs.py" ,
13
13
" test_demo_cc_doorhanger_shown_on_valid_credit_card_submission.py" ,
14
- " test_demo_cc_dropdown-presence .py" ,
14
+ " test_demo_cc_dropdown_presence .py" ,
15
15
" test_demo_cc_yellow_highlight.py" ,
16
16
" test_demo_ad_yellow_highlight.py" ,
17
17
" test_demo_ad_yellow_highlight_phone_email.py" ,
22
22
" test_demo_ad_clear_name_org.py" ,
23
23
" test_demo_ad_yellow_highlight_phone_email.py" ,
24
24
" test_demo_ad_clear_name_org.py" ,
25
- " test_demo_ad_clear_address_fields.py"
25
+ " test_demo_ad_clear_address_fields.py" ,
26
+ " test_demo_ad_clear_tel_email.py"
26
27
]
27
28
}
You can’t perform that action at this time.
0 commit comments