@@ -70,7 +70,7 @@ describe('Picker', function () {
70
70
expect ( picker ) . toHaveAttribute ( 'data-testid' , 'test' ) ;
71
71
72
72
let label = getAllByText ( 'Test' ) [ 0 ] ;
73
- let value = getByText ( 'Select an option …' ) ;
73
+ let value = getByText ( 'Select…' ) ;
74
74
expect ( label ) . toBeVisible ( ) ;
75
75
expect ( value ) . toBeVisible ( ) ;
76
76
} ) ;
@@ -362,7 +362,7 @@ describe('Picker', function () {
362
362
expect ( listbox ) . toBeVisible ( ) ;
363
363
expect ( onOpenChange ) . not . toBeCalled ( ) ;
364
364
365
- let picker = getByLabelText ( 'Select an option …' ) ;
365
+ let picker = getByLabelText ( 'Select…' ) ;
366
366
expect ( picker ) . toHaveAttribute ( 'aria-expanded' , 'true' ) ;
367
367
expect ( picker ) . toHaveAttribute ( 'aria-controls' , listbox . id ) ;
368
368
@@ -393,7 +393,7 @@ describe('Picker', function () {
393
393
expect ( listbox ) . toBeVisible ( ) ;
394
394
expect ( onOpenChange ) . not . toBeCalled ( ) ;
395
395
396
- let picker = getByLabelText ( 'Select an option …' ) ;
396
+ let picker = getByLabelText ( 'Select…' ) ;
397
397
expect ( picker ) . toHaveAttribute ( 'aria-expanded' , 'true' ) ;
398
398
expect ( picker ) . toHaveAttribute ( 'aria-controls' , listbox . id ) ;
399
399
@@ -721,7 +721,7 @@ describe('Picker', function () {
721
721
expect ( listbox ) . toBeVisible ( ) ;
722
722
expect ( onOpenChange ) . not . toBeCalled ( ) ;
723
723
724
- let picker = getByLabelText ( 'Select an option …' ) ;
724
+ let picker = getByLabelText ( 'Select…' ) ;
725
725
expect ( picker ) . toHaveAttribute ( 'aria-expanded' , 'true' ) ;
726
726
expect ( picker ) . toHaveAttribute ( 'aria-controls' , listbox . id ) ;
727
727
@@ -751,7 +751,7 @@ describe('Picker', function () {
751
751
expect ( getByRole ( 'listbox' ) ) . toBeVisible ( ) ;
752
752
expect ( onOpenChange ) . not . toBeCalled ( ) ;
753
753
754
- let picker = getByLabelText ( 'Select an option …' ) ;
754
+ let picker = getByLabelText ( 'Select…' ) ;
755
755
expect ( picker ) . toHaveAttribute ( 'aria-expanded' , 'true' ) ;
756
756
757
757
let listbox = getByRole ( 'listbox' ) ;
@@ -804,7 +804,7 @@ describe('Picker', function () {
804
804
expect ( picker ) . toHaveAttribute ( 'aria-haspopup' , 'listbox' ) ;
805
805
806
806
let label = getAllByText ( 'Test' ) [ 0 ] ;
807
- let value = getByText ( 'Select an option …' ) ;
807
+ let value = getByText ( 'Select…' ) ;
808
808
expect ( label ) . toHaveAttribute ( 'id' ) ;
809
809
expect ( value ) . toHaveAttribute ( 'id' ) ;
810
810
expect ( picker ) . toHaveAttribute ( 'aria-labelledby' , `${ value . id } ${ label . id } ` ) ;
@@ -829,7 +829,7 @@ describe('Picker', function () {
829
829
) ;
830
830
831
831
let picker = getByRole ( 'button' ) ;
832
- let value = getByText ( 'Select an option …' ) ;
832
+ let value = getByText ( 'Select…' ) ;
833
833
expect ( picker ) . toHaveAttribute ( 'id' ) ;
834
834
expect ( value ) . toHaveAttribute ( 'id' ) ;
835
835
expect ( picker ) . toHaveAttribute ( 'aria-label' , 'Test' ) ;
@@ -855,7 +855,7 @@ describe('Picker', function () {
855
855
) ;
856
856
857
857
let picker = getByRole ( 'button' ) ;
858
- let value = getByText ( 'Select an option …' ) ;
858
+ let value = getByText ( 'Select…' ) ;
859
859
expect ( picker ) . toHaveAttribute ( 'id' ) ;
860
860
expect ( value ) . toHaveAttribute ( 'id' ) ;
861
861
expect ( picker ) . toHaveAttribute ( 'aria-labelledby' , `${ value . id } foo` ) ;
@@ -880,7 +880,7 @@ describe('Picker', function () {
880
880
) ;
881
881
882
882
let picker = getByRole ( 'button' ) ;
883
- let value = getByText ( 'Select an option …' ) ;
883
+ let value = getByText ( 'Select…' ) ;
884
884
expect ( picker ) . toHaveAttribute ( 'id' ) ;
885
885
expect ( value ) . toHaveAttribute ( 'id' ) ;
886
886
expect ( picker ) . toHaveAttribute ( 'aria-label' , 'Test' ) ;
@@ -914,7 +914,7 @@ describe('Picker', function () {
914
914
expect ( span ) . not . toHaveAttribute ( 'aria-hidden' ) ;
915
915
916
916
let label = span . parentElement ;
917
- let value = getByText ( 'Select an option …' ) ;
917
+ let value = getByText ( 'Select…' ) ;
918
918
expect ( label ) . toHaveAttribute ( 'id' ) ;
919
919
expect ( value ) . toHaveAttribute ( 'id' ) ;
920
920
expect ( picker ) . toHaveAttribute ( 'aria-labelledby' , `${ value . id } ${ label . id } ` ) ;
@@ -978,7 +978,7 @@ describe('Picker', function () {
978
978
) ;
979
979
980
980
let picker = getByRole ( 'button' ) ;
981
- expect ( picker ) . toHaveTextContent ( 'Select an option …' ) ;
981
+ expect ( picker ) . toHaveTextContent ( 'Select…' ) ;
982
982
await user . click ( picker ) ;
983
983
act ( ( ) => jest . runAllTimers ( ) ) ;
984
984
@@ -1015,7 +1015,7 @@ describe('Picker', function () {
1015
1015
) ;
1016
1016
1017
1017
let picker = getByRole ( 'button' ) ;
1018
- expect ( picker ) . toHaveTextContent ( 'Select an option …' ) ;
1018
+ expect ( picker ) . toHaveTextContent ( 'Select…' ) ;
1019
1019
await user . click ( picker ) ;
1020
1020
act ( ( ) => jest . runAllTimers ( ) ) ;
1021
1021
@@ -1086,7 +1086,7 @@ describe('Picker', function () {
1086
1086
) ;
1087
1087
1088
1088
let picker = getByRole ( 'button' ) ;
1089
- expect ( picker ) . toHaveTextContent ( 'Select an option …' ) ;
1089
+ expect ( picker ) . toHaveTextContent ( 'Select…' ) ;
1090
1090
await user . click ( picker ) ;
1091
1091
act ( ( ) => jest . runAllTimers ( ) ) ;
1092
1092
@@ -1132,7 +1132,7 @@ describe('Picker', function () {
1132
1132
) ;
1133
1133
1134
1134
let picker = getByRole ( 'button' ) ;
1135
- expect ( picker ) . toHaveTextContent ( 'Select an option …' ) ;
1135
+ expect ( picker ) . toHaveTextContent ( 'Select…' ) ;
1136
1136
act ( ( ) => { picker . focus ( ) ; } ) ;
1137
1137
1138
1138
fireEvent . keyDown ( picker , { key : 'ArrowUp' } ) ;
@@ -1177,7 +1177,7 @@ describe('Picker', function () {
1177
1177
) ;
1178
1178
1179
1179
let picker = getByRole ( 'button' ) ;
1180
- expect ( picker ) . toHaveTextContent ( 'Select an option …' ) ;
1180
+ expect ( picker ) . toHaveTextContent ( 'Select…' ) ;
1181
1181
await user . click ( picker ) ;
1182
1182
act ( ( ) => jest . runAllTimers ( ) ) ;
1183
1183
@@ -1223,7 +1223,7 @@ describe('Picker', function () {
1223
1223
) ;
1224
1224
1225
1225
let picker = getByRole ( 'button' ) ;
1226
- expect ( picker ) . toHaveTextContent ( 'Select an option …' ) ;
1226
+ expect ( picker ) . toHaveTextContent ( 'Select…' ) ;
1227
1227
expect ( onOpenChangeSpy ) . toHaveBeenCalledTimes ( 0 ) ;
1228
1228
await user . click ( picker ) ;
1229
1229
act ( ( ) => jest . runAllTimers ( ) ) ;
@@ -1370,7 +1370,7 @@ describe('Picker', function () {
1370
1370
) ;
1371
1371
1372
1372
let picker = getByRole ( 'button' ) ;
1373
- expect ( picker ) . toHaveTextContent ( 'Select an option …' ) ;
1373
+ expect ( picker ) . toHaveTextContent ( 'Select…' ) ;
1374
1374
await user . click ( picker ) ;
1375
1375
act ( ( ) => jest . runAllTimers ( ) ) ;
1376
1376
@@ -1443,7 +1443,7 @@ describe('Picker', function () {
1443
1443
) ;
1444
1444
1445
1445
let picker = getByRole ( 'button' ) ;
1446
- expect ( picker ) . toHaveTextContent ( 'Select an option …' ) ;
1446
+ expect ( picker ) . toHaveTextContent ( 'Select…' ) ;
1447
1447
await user . click ( picker ) ;
1448
1448
act ( ( ) => jest . runAllTimers ( ) ) ;
1449
1449
@@ -1545,7 +1545,7 @@ describe('Picker', function () {
1545
1545
1546
1546
let picker = getByRole ( 'button' ) ;
1547
1547
act ( ( ) => { picker . focus ( ) ; } ) ;
1548
- expect ( picker ) . toHaveTextContent ( 'Select an option …' ) ;
1548
+ expect ( picker ) . toHaveTextContent ( 'Select…' ) ;
1549
1549
fireEvent . keyDown ( picker , { key : 'ArrowDown' } ) ;
1550
1550
act ( ( ) => jest . runAllTimers ( ) ) ;
1551
1551
@@ -1641,7 +1641,7 @@ describe('Picker', function () {
1641
1641
1642
1642
let picker = getByRole ( 'button' ) ;
1643
1643
await user . tab ( ) ;
1644
- expect ( picker ) . toHaveTextContent ( 'Select an option …' ) ;
1644
+ expect ( picker ) . toHaveTextContent ( 'Select…' ) ;
1645
1645
await user . keyboard ( '{ArrowLeft}' ) ;
1646
1646
act ( ( ) => jest . runAllTimers ( ) ) ;
1647
1647
expect ( onSelectionChange ) . toHaveBeenCalledTimes ( 1 ) ;
@@ -1687,7 +1687,7 @@ describe('Picker', function () {
1687
1687
1688
1688
let picker = getByRole ( 'button' ) ;
1689
1689
act ( ( ) => { picker . focus ( ) ; } ) ;
1690
- expect ( picker ) . toHaveTextContent ( 'Select an option …' ) ;
1690
+ expect ( picker ) . toHaveTextContent ( 'Select…' ) ;
1691
1691
1692
1692
fireEvent . keyDown ( picker , { key : 't' } ) ;
1693
1693
fireEvent . keyUp ( picker , { key : 't' } ) ;
@@ -1715,7 +1715,7 @@ describe('Picker', function () {
1715
1715
1716
1716
let picker = getByRole ( 'button' ) ;
1717
1717
act ( ( ) => { picker . focus ( ) ; } ) ;
1718
- expect ( picker ) . toHaveTextContent ( 'Select an option …' ) ;
1718
+ expect ( picker ) . toHaveTextContent ( 'Select…' ) ;
1719
1719
1720
1720
fireEvent . keyDown ( picker , { key : 't' } ) ;
1721
1721
fireEvent . keyUp ( picker , { key : 't' } ) ;
@@ -1744,7 +1744,7 @@ describe('Picker', function () {
1744
1744
1745
1745
let picker = getByRole ( 'button' ) ;
1746
1746
act ( ( ) => { picker . focus ( ) ; } ) ;
1747
- expect ( picker ) . toHaveTextContent ( 'Select an option …' ) ;
1747
+ expect ( picker ) . toHaveTextContent ( 'Select…' ) ;
1748
1748
1749
1749
fireEvent . keyDown ( picker , { key : 't' } ) ;
1750
1750
fireEvent . keyUp ( picker , { key : 't' } ) ;
@@ -1772,7 +1772,7 @@ describe('Picker', function () {
1772
1772
) ;
1773
1773
1774
1774
let picker = getByRole ( 'button' ) ;
1775
- expect ( picker ) . toHaveTextContent ( 'Select an option …' ) ;
1775
+ expect ( picker ) . toHaveTextContent ( 'Select…' ) ;
1776
1776
1777
1777
let hiddenLabel = getByText ( 'Test' , { hidden : true , selector : 'label' } ) ;
1778
1778
expect ( hiddenLabel . tagName ) . toBe ( 'LABEL' ) ;
@@ -2500,7 +2500,7 @@ describe('Picker', function () {
2500
2500
jest . runAllTimers ( ) ;
2501
2501
} ) ;
2502
2502
2503
- expect ( button ) . toHaveTextContent ( 'Select an option …' ) ;
2503
+ expect ( button ) . toHaveTextContent ( 'Select…' ) ;
2504
2504
expect ( listbox ) . not . toBeInTheDocument ( ) ;
2505
2505
expect ( onClick . mock . calls [ 0 ] [ 0 ] . target ) . toBeInstanceOf ( HTMLAnchorElement ) ;
2506
2506
expect ( onClick . mock . calls [ 0 ] [ 0 ] . target . href ) . toBe ( 'https://google.com/' ) ;
0 commit comments