@@ -54,7 +54,7 @@ describe("calcite-color-picker-hex-input", () => {
54
54
await page . setContent ( "<calcite-color-picker-hex-input allow-empty></calcite-color-picker-hex-input>" ) ;
55
55
56
56
const input = await page . find ( `calcite-color-picker-hex-input` ) ;
57
- await input . setProperty ( "value" , null ) ;
57
+ input . setProperty ( "value" , null ) ;
58
58
await page . waitForChanges ( ) ;
59
59
60
60
expect ( await input . getProperty ( "value" ) ) . toBe ( null ) ;
@@ -69,7 +69,7 @@ describe("calcite-color-picker-hex-input", () => {
69
69
await page . setContent ( "<calcite-color-picker-hex-input></calcite-color-picker-hex-input>" ) ;
70
70
71
71
const input = await page . find ( `calcite-color-picker-hex-input` ) ;
72
- await input . setProperty ( "value" , "#abc" ) ;
72
+ input . setProperty ( "value" , "#abc" ) ;
73
73
await page . waitForChanges ( ) ;
74
74
75
75
expect ( await input . getProperty ( "value" ) ) . toBe ( "#aabbcc" ) ;
@@ -80,7 +80,7 @@ describe("calcite-color-picker-hex-input", () => {
80
80
await page . setContent ( "<calcite-color-picker-hex-input alpha-channel></calcite-color-picker-hex-input>" ) ;
81
81
82
82
const input = await page . find ( `calcite-color-picker-hex-input` ) ;
83
- await input . setProperty ( "value" , "#abcd" ) ;
83
+ input . setProperty ( "value" , "#abcd" ) ;
84
84
await page . waitForChanges ( ) ;
85
85
86
86
expect ( await input . getProperty ( "value" ) ) . toBe ( "#aabbccdd" ) ;
@@ -91,7 +91,7 @@ describe("calcite-color-picker-hex-input", () => {
91
91
await page . setContent ( "<calcite-color-picker-hex-input></calcite-color-picker-hex-input>" ) ;
92
92
93
93
const input = await page . find ( `calcite-color-picker-hex-input` ) ;
94
- await input . setProperty ( "value" , "#fafafa" ) ;
94
+ input . setProperty ( "value" , "#fafafa" ) ;
95
95
await page . waitForChanges ( ) ;
96
96
97
97
expect ( await input . getProperty ( "value" ) ) . toBe ( "#fafafa" ) ;
@@ -102,7 +102,7 @@ describe("calcite-color-picker-hex-input", () => {
102
102
await page . setContent ( "<calcite-color-picker-hex-input alpha-channel></calcite-color-picker-hex-input>" ) ;
103
103
104
104
const input = await page . find ( `calcite-color-picker-hex-input` ) ;
105
- await input . setProperty ( "value" , "#fafafafa" ) ;
105
+ input . setProperty ( "value" , "#fafafafa" ) ;
106
106
await page . waitForChanges ( ) ;
107
107
108
108
expect ( await input . getProperty ( "value" ) ) . toBe ( "#fafafafa" ) ;
@@ -132,37 +132,37 @@ describe("calcite-color-picker-hex-input", () => {
132
132
await page . setContent ( `<calcite-color-picker-hex-input value='${ hex } '></calcite-color-picker-hex-input>` ) ;
133
133
const input = await page . find ( `calcite-color-picker-hex-input` ) ;
134
134
135
- await input . setProperty ( "value" , null ) ;
135
+ input . setProperty ( "value" , null ) ;
136
136
await page . waitForChanges ( ) ;
137
137
138
138
expect ( await input . getProperty ( "value" ) ) . toBe ( hex ) ;
139
139
140
- await input . setProperty ( "value" , "wrong" ) ;
140
+ input . setProperty ( "value" , "wrong" ) ;
141
141
await page . waitForChanges ( ) ;
142
142
143
143
expect ( await input . getProperty ( "value" ) ) . toBe ( hex ) ;
144
144
145
- await input . setProperty ( "value" , "#" ) ;
145
+ input . setProperty ( "value" , "#" ) ;
146
146
await page . waitForChanges ( ) ;
147
147
148
148
expect ( await input . getProperty ( "value" ) ) . toBe ( hex ) ;
149
149
150
- await input . setProperty ( "value" , "#a" ) ;
150
+ input . setProperty ( "value" , "#a" ) ;
151
151
await page . waitForChanges ( ) ;
152
152
153
153
expect ( await input . getProperty ( "value" ) ) . toBe ( hex ) ;
154
154
155
- await input . setProperty ( "value" , "#aa" ) ;
155
+ input . setProperty ( "value" , "#aa" ) ;
156
156
await page . waitForChanges ( ) ;
157
157
158
158
expect ( await input . getProperty ( "value" ) ) . toBe ( hex ) ;
159
159
160
- await input . setProperty ( "value" , "#aaaa" ) ;
160
+ input . setProperty ( "value" , "#aaaa" ) ;
161
161
await page . waitForChanges ( ) ;
162
162
163
163
expect ( await input . getProperty ( "value" ) ) . toBe ( hex ) ;
164
164
165
- await input . setProperty ( "value" , "#aaaaa" ) ;
165
+ input . setProperty ( "value" , "#aaaaa" ) ;
166
166
await page . waitForChanges ( ) ;
167
167
168
168
expect ( await input . getProperty ( "value" ) ) . toBe ( hex ) ;
@@ -176,37 +176,37 @@ describe("calcite-color-picker-hex-input", () => {
176
176
) ;
177
177
const input = await page . find ( `calcite-color-picker-hex-input` ) ;
178
178
179
- await input . setProperty ( "value" , null ) ;
179
+ input . setProperty ( "value" , null ) ;
180
180
await page . waitForChanges ( ) ;
181
181
182
182
expect ( await input . getProperty ( "value" ) ) . toBe ( hex ) ;
183
183
184
- await input . setProperty ( "value" , "wrong" ) ;
184
+ input . setProperty ( "value" , "wrong" ) ;
185
185
await page . waitForChanges ( ) ;
186
186
187
187
expect ( await input . getProperty ( "value" ) ) . toBe ( hex ) ;
188
188
189
- await input . setProperty ( "value" , "#" ) ;
189
+ input . setProperty ( "value" , "#" ) ;
190
190
await page . waitForChanges ( ) ;
191
191
192
192
expect ( await input . getProperty ( "value" ) ) . toBe ( hex ) ;
193
193
194
- await input . setProperty ( "value" , "#a" ) ;
194
+ input . setProperty ( "value" , "#a" ) ;
195
195
await page . waitForChanges ( ) ;
196
196
197
197
expect ( await input . getProperty ( "value" ) ) . toBe ( hex ) ;
198
198
199
- await input . setProperty ( "value" , "#aa" ) ;
199
+ input . setProperty ( "value" , "#aa" ) ;
200
200
await page . waitForChanges ( ) ;
201
201
202
202
expect ( await input . getProperty ( "value" ) ) . toBe ( hex ) ;
203
203
204
- await input . setProperty ( "value" , "#aaaaa" ) ;
204
+ input . setProperty ( "value" , "#aaaaa" ) ;
205
205
await page . waitForChanges ( ) ;
206
206
207
207
expect ( await input . getProperty ( "value" ) ) . toBe ( hex ) ;
208
208
209
- await input . setProperty ( "value" , "#aaaaaaa" ) ;
209
+ input . setProperty ( "value" , "#aaaaaaa" ) ;
210
210
await page . waitForChanges ( ) ;
211
211
212
212
expect ( await input . getProperty ( "value" ) ) . toBe ( hex ) ;
@@ -219,7 +219,7 @@ describe("calcite-color-picker-hex-input", () => {
219
219
const input = await page . find ( "calcite-color-picker-hex-input" ) ;
220
220
const spy = await input . spyOnEvent ( "calciteColorPickerHexInputChange" ) ;
221
221
222
- await input . setProperty ( "value" , "#abcdef" ) ;
222
+ input . setProperty ( "value" , "#abcdef" ) ;
223
223
await page . waitForChanges ( ) ;
224
224
225
225
expect ( spy ) . toHaveReceivedEventTimes ( 0 ) ;
@@ -360,7 +360,7 @@ describe("calcite-color-picker-hex-input", () => {
360
360
const initialHex = "#000000" ;
361
361
362
362
await input . callMethod ( "setFocus" ) ;
363
- await input . setProperty ( "value" , initialHex ) ;
363
+ input . setProperty ( "value" , initialHex ) ;
364
364
await page . waitForChanges ( ) ;
365
365
366
366
await page . keyboard . press ( "ArrowUp" ) ;
@@ -404,7 +404,7 @@ describe("calcite-color-picker-hex-input", () => {
404
404
405
405
it ( "restores previous value when a nudge key is pressed and no-color is allowed and set" , async ( ) => {
406
406
const noColorValue = null ;
407
- await input . setProperty ( "value" , noColorValue ) ;
407
+ input . setProperty ( "value" , noColorValue ) ;
408
408
await page . waitForChanges ( ) ;
409
409
await input . callMethod ( "setFocus" ) ;
410
410
await page . waitForChanges ( ) ;
@@ -413,22 +413,22 @@ describe("calcite-color-picker-hex-input", () => {
413
413
await page . waitForChanges ( ) ;
414
414
expect ( await input . getProperty ( "value" ) ) . toBe ( startingHex ) ;
415
415
416
- await input . setProperty ( "value" , noColorValue ) ;
416
+ input . setProperty ( "value" , noColorValue ) ;
417
417
await page . waitForChanges ( ) ;
418
418
419
419
await page . keyboard . press ( "ArrowDown" ) ;
420
420
await page . waitForChanges ( ) ;
421
421
expect ( await input . getProperty ( "value" ) ) . toBe ( startingHex ) ;
422
422
423
- await input . setProperty ( "value" , noColorValue ) ;
423
+ input . setProperty ( "value" , noColorValue ) ;
424
424
await page . waitForChanges ( ) ;
425
425
426
426
await page . keyboard . down ( "Shift" ) ;
427
427
await page . keyboard . press ( "ArrowUp" ) ;
428
428
await page . keyboard . up ( "Shift" ) ;
429
429
expect ( await input . getProperty ( "value" ) ) . toBe ( startingHex ) ;
430
430
431
- await input . setProperty ( "value" , noColorValue ) ;
431
+ input . setProperty ( "value" , noColorValue ) ;
432
432
await page . waitForChanges ( ) ;
433
433
434
434
await page . keyboard . down ( "Shift" ) ;
@@ -474,7 +474,7 @@ describe("calcite-color-picker-hex-input", () => {
474
474
const initialHex = "#000000ff" ;
475
475
476
476
await input . callMethod ( "setFocus" ) ;
477
- await input . setProperty ( "value" , initialHex ) ;
477
+ input . setProperty ( "value" , initialHex ) ;
478
478
await page . waitForChanges ( ) ;
479
479
480
480
await page . keyboard . press ( "ArrowUp" ) ;
@@ -523,7 +523,7 @@ describe("calcite-color-picker-hex-input", () => {
523
523
524
524
it ( "restores previous value when a nudge key is pressed and no-color is allowed and set" , async ( ) => {
525
525
const noColorValue = null ;
526
- await input . setProperty ( "value" , noColorValue ) ;
526
+ input . setProperty ( "value" , noColorValue ) ;
527
527
await page . waitForChanges ( ) ;
528
528
await input . callMethod ( "setFocus" ) ;
529
529
await page . waitForChanges ( ) ;
@@ -532,22 +532,22 @@ describe("calcite-color-picker-hex-input", () => {
532
532
await page . waitForChanges ( ) ;
533
533
expect ( await input . getProperty ( "value" ) ) . toBe ( startingHexa ) ;
534
534
535
- await input . setProperty ( "value" , noColorValue ) ;
535
+ input . setProperty ( "value" , noColorValue ) ;
536
536
await page . waitForChanges ( ) ;
537
537
538
538
await page . keyboard . press ( "ArrowDown" ) ;
539
539
await page . waitForChanges ( ) ;
540
540
expect ( await input . getProperty ( "value" ) ) . toBe ( startingHexa ) ;
541
541
542
- await input . setProperty ( "value" , noColorValue ) ;
542
+ input . setProperty ( "value" , noColorValue ) ;
543
543
await page . waitForChanges ( ) ;
544
544
545
545
await page . keyboard . down ( "Shift" ) ;
546
546
await page . keyboard . press ( "ArrowUp" ) ;
547
547
await page . keyboard . up ( "Shift" ) ;
548
548
expect ( await input . getProperty ( "value" ) ) . toBe ( startingHexa ) ;
549
549
550
- await input . setProperty ( "value" , noColorValue ) ;
550
+ input . setProperty ( "value" , noColorValue ) ;
551
551
await page . waitForChanges ( ) ;
552
552
553
553
await page . keyboard . down ( "Shift" ) ;
0 commit comments