@@ -18,58 +18,58 @@ def test_case():
1818@pytest .mark .ci  
1919def  test_login_form_copy_paste (driver : Firefox ):
2020    """C2264626 - Verify that copy and paste actions are displayed in the context menu and work as expected""" 
21-     # instantiate  objects 
21+     # Instantiate  objects 
2222    login_fill  =  LoginAutofill (driver ).open ()
2323    context_menu  =  ContextMenu (driver )
2424    util  =  Utilities ()
2525    random_text  =  util .generate_random_text ("sentence" )
2626
27-     # get  the field and send text 
27+     # Get  the field and send text 
2828    password_field  =  login_fill .get_element ("input-field" , labels = ["current-password" ])
2929    password_field .send_keys (random_text )
3030    logging .info (f"Sent the text { random_text }  )
3131
32-     # triple  click and copy text 
32+     # Triple  click and copy text 
3333    login_fill .triple_click ("input-field" , labels = ["current-password" ])
3434    login_fill .context_click (password_field )
3535    context_menu .click_and_hide_menu ("context-menu-copy" )
3636
37-     # delete  all text 
37+     # Delete  all text 
3838    password_field .send_keys (Keys .BACK_SPACE )
3939    assert  password_field .get_attribute ("value" ) ==  "" 
4040
4141    login_fill .context_click (password_field )
4242    context_menu .click_and_hide_menu ("context-menu-paste" )
4343
44-     # final  assertion 
44+     # Final  assertion 
4545    assert  password_field .get_attribute ("value" ) !=  random_text 
4646
4747
4848def  test_text_area_copy_paste (driver : Firefox ):
49-     # initialize  objects 
49+     # Initialize  objects 
5050    text_area_fill  =  TextAreaFormAutofill (driver ).open ()
5151    util  =  Utilities ()
5252    context_menu  =  ContextMenu (driver )
5353    text_area  =  text_area_fill .get_element ("street-address-textarea" )
5454
55-     # send  the text 
55+     # Send  the text 
5656    random_text  =  util .generate_random_text ("sentence" )
5757    text_area .send_keys (random_text )
5858    logging .info (f"Sent the text { random_text }  )
5959
60-     # copy  the text 
60+     # Copy  the text 
6161    text_area_fill .triple_click ("street-address-textarea" )
6262    text_area_fill .context_click (text_area )
6363    context_menu .click_and_hide_menu ("context-menu-copy" )
6464
65-     # delete  all the text and paste 
65+     # Delete  all the text and paste 
6666    text_area .send_keys (Keys .BACK_SPACE )
6767    assert  text_area .get_attribute ("value" ) ==  "" 
6868
6969    text_area_fill .context_click (text_area )
7070    context_menu .click_and_hide_menu ("context-menu-paste" )
7171
72-     # check  value 
72+     # Check  value 
7373    assert  text_area .get_attribute ("value" ) ==  random_text 
7474
7575
@@ -78,26 +78,27 @@ def test_search_field_copy_paste(driver: Firefox):
7878    google_search  =  GoogleSearch (driver ).open ()
7979    util  =  Utilities ()
8080
81-     # send  the text 
81+     # Send  the text 
8282    random_text  =  util .generate_random_text ("sentence" )
8383    search_bar  =  google_search .get_search_bar_element ()
8484    search_bar .send_keys (random_text )
8585    logging .info (f"Sent the text { random_text }  )
8686
87-     # triple click the text to select all 
87+     # Triple click the text to select all 
88+     google_search .click_on ("search-bar-textarea" )
8889    google_search .triple_click ("search-bar-textarea" )
8990
90-     # context  click 
91+     # Context  click 
9192    google_search .context_click (search_bar )
9293    context_menu .click_and_hide_menu ("context-menu-copy" )
9394
94-     # delete  the current text 
95+     # Delete  the current text 
9596    search_bar .send_keys (Keys .BACK_SPACE )
9697    assert  search_bar .get_attribute ("value" ) ==  "" 
9798
98-     # context  click and paste the text back 
99+     # Context  click and paste the text back 
99100    google_search .context_click (search_bar )
100101    context_menu .click_and_hide_menu ("context-menu-paste" )
101102
102-     # assert  the value is correct 
103+     # Assert  the value is correct 
103104    assert  search_bar .get_attribute ("value" ) ==  random_text 
0 commit comments