Skip to content

Commit 31aeab6

Browse files
authored
fix(combobox): Update tests (#4725)
1 parent e2bfdec commit 31aeab6

File tree

8 files changed

+1461
-896
lines changed

8 files changed

+1461
-896
lines changed

ui/components/datetime-picker/__tests__/__snapshots__/index.spec.js.snap

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,7 @@ exports[`Datetime Picker renders a default datetime picker 1`] = `
690690
<label
691691
className="slds-form-element__label"
692692
htmlFor="example-unique-id-2"
693+
id="combobox-label-id-1"
693694
>
694695
Time
695696
</label>
@@ -712,7 +713,7 @@ exports[`Datetime Picker renders a default datetime picker 1`] = `
712713
aria-controls="example-unique-id-3"
713714
aria-expanded="false"
714715
aria-haspopup="listbox"
715-
autocomplete="off"
716+
autoComplete="off"
716717
className="slds-input slds-combobox__input"
717718
defaultValue=""
718719
id="example-unique-id-2"
@@ -1612,6 +1613,7 @@ exports[`Datetime Picker renders with a date selection 1`] = `
16121613
<label
16131614
className="slds-form-element__label"
16141615
htmlFor="example-unique-id-8"
1616+
id="combobox-label-id-3"
16151617
>
16161618
Time
16171619
</label>
@@ -1634,7 +1636,7 @@ exports[`Datetime Picker renders with a date selection 1`] = `
16341636
aria-controls="example-unique-id-9"
16351637
aria-expanded="false"
16361638
aria-haspopup="listbox"
1637-
autocomplete="off"
1639+
autoComplete="off"
16381640
className="slds-input slds-combobox__input"
16391641
defaultValue=""
16401642
id="example-unique-id-8"
@@ -2542,6 +2544,7 @@ exports[`Datetime Picker renders with a required plus error state 1`] = `
25422544
<label
25432545
className="slds-form-element__label"
25442546
htmlFor="example-unique-id-20"
2547+
id="combobox-label-id-7"
25452548
>
25462549
Time
25472550
</label>
@@ -2564,7 +2567,7 @@ exports[`Datetime Picker renders with a required plus error state 1`] = `
25642567
aria-controls="example-unique-id-21"
25652568
aria-expanded="false"
25662569
aria-haspopup="listbox"
2567-
autocomplete="off"
2570+
autoComplete="off"
25682571
className="slds-input slds-combobox__input"
25692572
defaultValue=""
25702573
id="example-unique-id-20"
@@ -3476,6 +3479,7 @@ exports[`Datetime Picker renders with a required state 1`] = `
34763479
<label
34773480
className="slds-form-element__label"
34783481
htmlFor="example-unique-id-14"
3482+
id="combobox-label-id-5"
34793483
>
34803484
Time
34813485
</label>
@@ -3498,7 +3502,7 @@ exports[`Datetime Picker renders with a required state 1`] = `
34983502
aria-controls="example-unique-id-15"
34993503
aria-expanded="false"
35003504
aria-haspopup="listbox"
3501-
autocomplete="off"
3505+
autoComplete="off"
35023506
className="slds-input slds-combobox__input"
35033507
defaultValue=""
35043508
id="example-unique-id-14"
@@ -4397,6 +4401,7 @@ exports[`Datetime Picker renders with a small width container 1`] = `
43974401
<label
43984402
className="slds-form-element__label"
43994403
htmlFor="example-unique-id-5"
4404+
id="combobox-label-id-2"
44004405
>
44014406
Time
44024407
</label>
@@ -4419,7 +4424,7 @@ exports[`Datetime Picker renders with a small width container 1`] = `
44194424
aria-controls="example-unique-id-6"
44204425
aria-expanded="false"
44214426
aria-haspopup="listbox"
4422-
autocomplete="off"
4427+
autoComplete="off"
44234428
className="slds-input slds-combobox__input"
44244429
defaultValue=""
44254430
id="example-unique-id-5"
@@ -5319,6 +5324,7 @@ exports[`Datetime Picker renders with a time selection 1`] = `
53195324
<label
53205325
className="slds-form-element__label"
53215326
htmlFor="example-unique-id-11"
5327+
id="combobox-label-id-4"
53225328
>
53235329
Time
53245330
</label>
@@ -5341,7 +5347,7 @@ exports[`Datetime Picker renders with a time selection 1`] = `
53415347
aria-controls="example-unique-id-12"
53425348
aria-expanded="true"
53435349
aria-haspopup="listbox"
5344-
autocomplete="off"
5350+
autoComplete="off"
53455351
className="slds-input slds-combobox__input slds-has-focus"
53465352
defaultValue=""
53475353
id="example-unique-id-11"
@@ -6256,6 +6262,7 @@ exports[`Datetime Picker renders with an error state 1`] = `
62566262
<label
62576263
className="slds-form-element__label"
62586264
htmlFor="example-unique-id-17"
6265+
id="combobox-label-id-6"
62596266
>
62606267
Time
62616268
</label>
@@ -6278,7 +6285,7 @@ exports[`Datetime Picker renders with an error state 1`] = `
62786285
aria-controls="example-unique-id-18"
62796286
aria-expanded="false"
62806287
aria-haspopup="listbox"
6281-
autocomplete="off"
6288+
autoComplete="off"
62826289
className="slds-input slds-combobox__input"
62836290
defaultValue=""
62846291
id="example-unique-id-17"

ui/components/dynamic-menu/__tests__/__snapshots__/index.spec.js.snap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,6 +825,7 @@ exports[`Dynamic Menu renders a dynamic menu with more than 10 items 1`] = `
825825
<label
826826
className="slds-form-element__label slds-assistive-text"
827827
htmlFor="example-unique-id-3"
828+
id="combobox-label-id-1"
828829
>
829830
Search
830831
</label>
@@ -846,7 +847,7 @@ exports[`Dynamic Menu renders a dynamic menu with more than 10 items 1`] = `
846847
aria-controls="example-unique-id-4"
847848
aria-expanded="true"
848849
aria-haspopup="listbox"
849-
autocomplete="off"
850+
autoComplete="off"
850851
className="slds-input slds-combobox__input"
851852
id="example-unique-id-3"
852853
onBlur={[Function]}

0 commit comments

Comments
 (0)