@@ -600,39 +600,39 @@ OnCalendar=daily
600
600
b .focus ("#demo-file-ac input[type=text]" )
601
601
b .input_text (stuff + "/" )
602
602
# need to wait for the widget's "fast typing" inhibition delay to trigger the completion popup
603
- b .wait_in_text ("#demo-file-ac li:nth-of-type(1) button" , stuff + "/" )
604
- b .wait_in_text ("#demo-file-ac li:nth-of-type(2) button" , "dir/" )
605
- b .wait_in_text ("#demo-file-ac li:nth-of-type(3) button" , "dir1/" )
606
- b .wait_in_text ("#demo-file-ac li:nth-of-type(4) button" , "file1.txt" )
607
- b .click ("#demo-file-ac li:nth-of-type(2) button" )
603
+ b .wait_in_text (".pf-v6-c-menu li:nth-of-type(1) button" , stuff + "/" )
604
+ b .wait_in_text (".pf-v6-c-menu li:nth-of-type(2) button" , "dir/" )
605
+ b .wait_in_text (".pf-v6-c-menu li:nth-of-type(3) button" , "dir1/" )
606
+ b .wait_in_text (".pf-v6-c-menu li:nth-of-type(4) button" , "file1.txt" )
607
+ b .click (".pf-v6-c-menu li:nth-of-type(2) button" )
608
608
609
609
# clear the file completion widget
610
610
b .click ("#demo-file-ac div:first-of-type div:first-of-type button:nth-of-type(1)" )
611
611
# test if input matches one entry, but is the prefix of other entry, widget should not descend into directory
612
612
b .focus ("#demo-file-ac input[type=text]" )
613
613
b .input_text (stuff + "/dir" )
614
- b .wait_in_text ("#demo-file-ac li:nth-of-type(1) button" , stuff + "/dir" )
615
- b .wait_in_text ("#demo-file-ac li:nth-of-type(2) button" , stuff + "/dir1" )
614
+ b .wait_in_text (".pf-v6-c-menu li:nth-of-type(1) button" , stuff + "/dir" )
615
+ b .wait_in_text (".pf-v6-c-menu li:nth-of-type(2) button" , stuff + "/dir1" )
616
616
617
617
# clear the file completion widget
618
618
b .click ("#demo-file-ac div:first-of-type div:first-of-type button:nth-of-type(1)" )
619
619
b .focus ("#demo-file-ac input[type=text]" )
620
620
b .input_text (stuff + "/" )
621
- b .wait_in_text ("#demo-file-ac li:nth-of-type(1) button" , stuff + "/" )
622
- b .wait_in_text ("#demo-file-ac li:nth-of-type(4) button" , "file1.txt" )
623
- b .click ("#demo-file-ac li:nth-of-type(4) button" )
624
- b .wait_not_present ("#demo-file-ac li " )
621
+ b .wait_in_text (".pf-v6-c-menu li:nth-of-type(1) button" , stuff + "/" )
622
+ b .wait_in_text (".pf-v6-c-menu li:nth-of-type(4) button" , "file1.txt" )
623
+ b .click (".pf-v6-c-menu li:nth-of-type(4) button" )
624
+ b .wait_not_present (".pf-v6-c-menu " )
625
625
626
626
# now update file1, check robustness with dynamic events
627
627
m .execute (f"touch { stuff } /file1.txt" )
628
628
b .focus ("#demo-file-ac input[type=text]" )
629
629
time .sleep (1 )
630
630
b .key ("Backspace" , 5 )
631
631
# input is now $stuff/file
632
- b .wait_in_text ("#demo-file-ac li:nth-of-type(1) button" , "file1.txt" )
632
+ b .wait_in_text (".pf-v6-c-menu li:nth-of-type(1) button" , "file1.txt" )
633
633
b .key ("Backspace" , 4 )
634
634
# input is now $stuff/, so all listings should be available
635
- b .wait_in_text ("#demo-file-ac li:nth-of-type(4) button" , "file1.txt" )
635
+ b .wait_in_text (".pf-v6-c-menu li:nth-of-type(4) button" , "file1.txt" )
636
636
637
637
# add new file
638
638
m .execute (f"touch { stuff } /other" )
@@ -644,10 +644,10 @@ OnCalendar=daily
644
644
b .key ("Backspace" , 6 )
645
645
time .sleep (1 )
646
646
b .input_text ("stuff/" )
647
- b .wait_in_text ("#demo-file-ac li:nth-of-type(5) button" , "other" )
647
+ b .wait_in_text (".pf-v6-c-menu li:nth-of-type(5) button" , "other" )
648
648
# close the selector
649
649
b .click ("#demo-file-ac input" )
650
- b .wait_not_present ("#demo-file-ac li " )
650
+ b .wait_not_present (".pf-v6-c-menu " )
651
651
652
652
# Create test folder with known files
653
653
m .execute ("mkdir /home/admin/newdir" )
@@ -659,15 +659,15 @@ OnCalendar=daily
659
659
b .wait_val ("#demo-file-ac-preselected input" , "/home/admin/newdir/file1" )
660
660
# open the selector
661
661
b .click ("#demo-file-ac-preselected input" )
662
- b .wait_visible ("#demo-file-ac-preselected .pf-v6-c-menu" )
662
+ b .wait_visible (".pf-v6-c-menu" )
663
663
# close and open again to reload the dir (which just got created)
664
664
b .click ("#demo-file-ac-preselected .pf-v6-c-menu-toggle__button" )
665
- b .wait_not_present ("#demo-file-ac-preselected .pf-v6-c-menu" )
665
+ b .wait_not_present (".pf-v6-c-menu" )
666
666
b .click ("#demo-file-ac-preselected input" )
667
667
# selection has all the files in the directory
668
668
paths = ["/home/admin/newdir" , "/home/admin/newdir/dir1" , "/home/admin/newdir/dir2" , "/home/admin/newdir/file1" , "/home/admin/newdir/file2" ]
669
669
for i in range (5 ):
670
- b .wait_in_text (f"#demo-file-ac-preselected li:nth-of-type({ i + 1 } ) button" , paths [i ])
670
+ b .wait_in_text (f".pf-v6-c-menu li:nth-of-type({ i + 1 } ) button" , paths [i ])
671
671
672
672
@testlib .skipOstree ("No PCP available" )
673
673
@testlib .skipImage ("pcp not currently in testing" , "debian-testing" )
0 commit comments