@@ -70,7 +70,7 @@ describe("General", () => {
70
70
cy . get ( "[ui5-multi-combobox]" )
71
71
. should ( "have.attr" , "focused" ) ;
72
72
} ) ;
73
-
73
+
74
74
it ( "Open all items popover on nmore click" , ( ) => {
75
75
cy . mount (
76
76
< MultiComboBox style = "width: 100px" >
@@ -169,7 +169,7 @@ describe("General", () => {
169
169
. shadow ( )
170
170
. find ( "input" )
171
171
. realClick ( ) ;
172
-
172
+
173
173
cy . get ( "@mcb" )
174
174
. should ( "be.focused" ) ;
175
175
@@ -417,10 +417,10 @@ describe("General", () => {
417
417
. shadow ( )
418
418
. find ( "input" )
419
419
. realClick ( ) ;
420
-
420
+
421
421
cy . get ( "@mcb" )
422
422
. should ( "be.focused" ) ;
423
-
423
+
424
424
cy . realType ( "I" ) ;
425
425
426
426
cy . get ( "@mcb" )
@@ -594,7 +594,7 @@ describe("General", () => {
594
594
cy . get ( "@popover" )
595
595
. find ( ".ui5-mcb-select-all-checkbox" )
596
596
. realClick ( ) ;
597
-
597
+
598
598
cy . get ( "@selectionChangeEvent" )
599
599
. should ( "have.been.calledOnce" ) ;
600
600
@@ -657,7 +657,7 @@ describe("General", () => {
657
657
658
658
cy . get ( "@moreButton" )
659
659
. realClick ( ) ;
660
-
660
+
661
661
cy . get < ResponsivePopover > ( "@popover" )
662
662
. ui5ResponsivePopoverOpened ( ) ;
663
663
@@ -708,7 +708,7 @@ describe("General", () => {
708
708
cy . get ( "[ui5-multi-combobox]" )
709
709
. as ( "mcb" )
710
710
. realClick ( ) ;
711
-
711
+
712
712
cy . get ( "@mcb" )
713
713
. should ( "be.focused" ) ;
714
714
@@ -866,9 +866,6 @@ describe("MultiComboBox Truncated Tokens", () => {
866
866
cy . get ( "@token" )
867
867
. realClick ( ) ;
868
868
869
- cy . get ( "@token" )
870
- . should ( "be.focused" ) ;
871
-
872
869
cy . get ( "[ui5-multi-combobox]" )
873
870
. shadow ( )
874
871
. find ( "[ui5-tokenizer]" )
@@ -1901,7 +1898,7 @@ describe("Event firing", () => {
1901
1898
it ( "Should prevent selection-change on CTRL+A" , ( ) => {
1902
1899
const onSelectionChange = ( e :Event ) => {
1903
1900
e . preventDefault ( ) ;
1904
- }
1901
+ }
1905
1902
1906
1903
cy . mount (
1907
1904
< MultiComboBox onSelectionChange = { onSelectionChange } >
@@ -1974,17 +1971,16 @@ describe("Event firing", () => {
1974
1971
cy . get ( "[ui5-multi-combobox]" )
1975
1972
. shadow ( )
1976
1973
. find ( "input" )
1977
- . should ( "have.value" , "1" ) ;
1974
+ . as ( "input" ) ;
1975
+
1976
+ cy . get ( "@input" ) . should ( "have.value" , "1" ) ;
1978
1977
1979
1978
cy . get ( "[ui5-multi-combobox]" )
1980
1979
. shadow ( )
1981
1980
. find ( ".ui5-input-clear-icon-wrapper" )
1982
1981
. realClick ( ) ;
1983
1982
1984
- cy . get ( "[ui5-multi-combobox]" )
1985
- . shadow ( )
1986
- . find ( "input" )
1987
- . should ( "have.value" , "" ) ;
1983
+ cy . get ( "@input" ) . should ( "have.value" , "" ) ;
1988
1984
1989
1985
cy . get ( "@inputEvent" )
1990
1986
. should ( "have.been.calledTwice" ) ;
@@ -2325,7 +2321,7 @@ describe("Accessibility", () => {
2325
2321
. find ( "[ui5-token]" )
2326
2322
. last ( )
2327
2323
. should ( "be.focused" ) ;
2328
-
2324
+
2329
2325
cy . get ( "[ui5-multi-combobox]" )
2330
2326
. realPress ( "Backspace" ) ;
2331
2327
@@ -2355,7 +2351,7 @@ describe("Accessibility", () => {
2355
2351
. find ( "[ui5-token]" )
2356
2352
. last ( )
2357
2353
. should ( "be.focused" ) ;
2358
-
2354
+
2359
2355
cy . get ( "[ui5-multi-combobox]" )
2360
2356
. realPress ( "Backspace" ) ;
2361
2357
@@ -2399,7 +2395,7 @@ describe("Accessibility", () => {
2399
2395
. should ( "have.attr" , "aria-label" , label ) ;
2400
2396
} ) ;
2401
2397
2402
- it ( "Should apply aria-controls and aria-haspopup" , async ( ) => {
2398
+ it ( "Should apply aria-controls and aria-haspopup" , ( ) => {
2403
2399
cy . mount ( < MultiComboBox > </ MultiComboBox > ) ;
2404
2400
2405
2401
cy . get ( "[ui5-multi-combobox]" )
@@ -2418,7 +2414,7 @@ describe("Accessibility", () => {
2418
2414
. should ( "have.attr" , "aria-haspopup" , "dialog" ) ;
2419
2415
} ) ;
2420
2416
2421
- it . skip ( "Value state type should be added to the screen readers default value states announcement" , async ( ) => {
2417
+ it ( "Value state type should be added to the screen readers default value states announcement" , ( ) => {
2422
2418
cy . mount (
2423
2419
< >
2424
2420
< MultiComboBox id = "positive-mcb" valueState = "Positive" > </ MultiComboBox >
@@ -2435,7 +2431,9 @@ describe("Accessibility", () => {
2435
2431
cy . get ( "#warning-mcb" )
2436
2432
. shadow ( )
2437
2433
. find ( "#ui5-multi-combobox-valueStateDesc" )
2438
- . should ( "have.text" , VALUE_STATE_TYPE_WARNING . defaultText ) ;
2434
+ . should ( "have.text" , `${ VALUE_STATE_TYPE_WARNING . defaultText } ${ VALUE_STATE_WARNING . defaultText } ` ) ;
2435
+
2436
+ cy . get ( "#warning-mcb" ) . realClick ( ) ;
2439
2437
2440
2438
cy . get ( "#warning-mcb" )
2441
2439
. shadow ( )
@@ -2445,7 +2443,9 @@ describe("Accessibility", () => {
2445
2443
cy . get ( "#error-mcb" )
2446
2444
. shadow ( )
2447
2445
. find ( "#ui5-multi-combobox-valueStateDesc" )
2448
- . should ( "have.text" , VALUE_STATE_TYPE_ERROR . defaultText ) ;
2446
+ . should ( "have.text" , `${ VALUE_STATE_TYPE_ERROR . defaultText } ${ VALUE_STATE_ERROR . defaultText } ` ) ;
2447
+
2448
+ cy . get ( "#error-mcb" ) . realClick ( ) ;
2449
2449
2450
2450
cy . get ( "#error-mcb" )
2451
2451
. shadow ( )
@@ -2483,7 +2483,7 @@ describe("Accessibility", () => {
2483
2483
. shadow ( )
2484
2484
. find ( "input[type='checkbox']" )
2485
2485
. should ( "not.exist" ) ;
2486
-
2486
+
2487
2487
cy . get ( "@checkbox" )
2488
2488
. shadow ( )
2489
2489
. find ( ".ui5-checkbox-root" )
@@ -2826,7 +2826,7 @@ describe("Keyboard Handling", () => {
2826
2826
. find ( "[ui5-token]" )
2827
2827
. last ( )
2828
2828
. should ( "be.focused" ) ;
2829
-
2829
+
2830
2830
cy . get ( "[ui5-multi-combobox]" )
2831
2831
. realPress ( "Backspace" ) ;
2832
2832
@@ -2864,7 +2864,7 @@ describe("Keyboard Handling", () => {
2864
2864
2865
2865
cy . get ( "[ui5-multi-combobox]" )
2866
2866
. realPress ( "Escape" ) ;
2867
-
2867
+
2868
2868
cy . get ( "[ui5-multi-combobox]" )
2869
2869
. shadow ( )
2870
2870
. find < ResponsivePopover > ( "ui5-responsive-popover" )
@@ -3171,7 +3171,7 @@ describe("Keyboard Handling", () => {
3171
3171
. find ( "[ui5-tokenizer]" )
3172
3172
. find ( "[ui5-token]" )
3173
3173
. should ( "not.exist" ) ;
3174
-
3174
+
3175
3175
cy . get ( "[ui5-multi-combobox]" )
3176
3176
. should ( "be.focused" ) ;
3177
3177
} ) ;
@@ -3803,7 +3803,7 @@ describe("Keyboard Handling", () => {
3803
3803
. shadow ( )
3804
3804
. find ( "input" )
3805
3805
. realClick ( ) ;
3806
-
3806
+
3807
3807
cy . get ( "[ui5-multi-combobox]" )
3808
3808
. should ( "be.focused" ) ;
3809
3809
0 commit comments