refactor: colorpicker machine logic #2389
Annotations
4 errors, 14 warnings, and 12 notices
color-picker.e2e.ts:125:3 › color-picker › [form] should reset value to initial on reset:
e2e/color-picker.e2e.ts#L134
1) color-picker.e2e.ts:125:3 › color-picker › [form] should reset value to initial on reset ──────
Error: Timed out 10000ms waiting for expect(received).toHaveValue(expected)
Expected string: "#FF0000"
Received string: "#F47373"
Call log:
- expect.toHaveValue with timeout 10000ms
- waiting for locator('[data-part=control] [data-channel=hex]')
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
132 | await parts.resetButton.click()
133 |
> 134 | await expect(parts.input).toHaveValue(INITIAL_VALUE)
| ^
135 | })
136 |
137 | test("hsl channel inputs should work as expected", async ({ page, parts }) => {
at /home/runner/work/zag/zag/e2e/color-picker.e2e.ts:134:31
|
color-picker.e2e.ts:125:3 › color-picker › [form] should reset value to initial on reset:
e2e/color-picker.e2e.ts#L134
1) color-picker.e2e.ts:125:3 › color-picker › [form] should reset value to initial on reset ──────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 10000ms waiting for expect(received).toHaveValue(expected)
Expected string: "#FF0000"
Received string: "#F47373"
Call log:
- expect.toHaveValue with timeout 10000ms
- waiting for locator('[data-part=control] [data-channel=hex]')
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
132 | await parts.resetButton.click()
133 |
> 134 | await expect(parts.input).toHaveValue(INITIAL_VALUE)
| ^
135 | })
136 |
137 | test("hsl channel inputs should work as expected", async ({ page, parts }) => {
at /home/runner/work/zag/zag/e2e/color-picker.e2e.ts:134:31
|
color-picker.e2e.ts:125:3 › color-picker › [form] should reset value to initial on reset:
e2e/color-picker.e2e.ts#L134
1) color-picker.e2e.ts:125:3 › color-picker › [form] should reset value to initial on reset ──────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 10000ms waiting for expect(received).toHaveValue(expected)
Expected string: "#FF0000"
Received string: "#F47373"
Call log:
- expect.toHaveValue with timeout 10000ms
- waiting for locator('[data-part=control] [data-channel=hex]')
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
- locator resolved to <input min="0" step="1" type="text" max="16777215" valu…/>
- unexpected value "#F47373"
132 | await parts.resetButton.click()
133 |
> 134 | await expect(parts.input).toHaveValue(INITIAL_VALUE)
| ^
135 | })
136 |
137 | test("hsl channel inputs should work as expected", async ({ page, parts }) => {
at /home/runner/work/zag/zag/e2e/color-picker.e2e.ts:134:31
|
End-to-end Tests (1)
Process completed with exit code 1.
|
Slow Test:
number-input.e2e.ts#L1
number-input.e2e.ts took 18.9s
|
Slow Test:
nested-menu.e2e.ts#L1
nested-menu.e2e.ts took 25.4s
|
Slow Test:
popover.e2e.ts#L1
popover.e2e.ts took 17.8s
|
Slow Test:
radio-group.e2e.ts#L1
radio-group.e2e.ts took 21.3s
|
Slow Test:
slider.e2e.ts#L1
slider.e2e.ts took 15.5s
|
Slow Test:
hover-card.e2e.ts#L1
hover-card.e2e.ts took 24.0s
|
Slow Test:
dialog.e2e.ts#L1
dialog.e2e.ts took 21.1s
|
Slow Test:
tags-input.e2e.ts#L1
tags-input.e2e.ts took 22.5s
|
Slow Test:
switch.e2e.ts#L1
switch.e2e.ts took 16.0s
|
Slow Test:
date-picker.e2e.ts#L1
date-picker.e2e.ts took 43.6s
|
Slow Test:
color-picker.e2e.ts#L1
color-picker.e2e.ts took 1.0m
|
Slow Test:
accordion.e2e.ts#L1
accordion.e2e.ts took 15.8s
|
Slow Test:
select.e2e.ts#L1
select.e2e.ts took 1.2m
|
Slow Test:
combobox.e2e.ts#L1
combobox.e2e.ts took 33.9s
|
🎭 Playwright Run Summary
2 skipped
10 passed (30.7s)
|
🎭 Playwright Run Summary
11 passed (35.0s)
|
🎭 Playwright Run Summary
18 passed (47.7s)
|
🎭 Playwright Run Summary
27 passed (55.8s)
|
🎭 Playwright Run Summary
10 passed (34.8s)
|
🎭 Playwright Run Summary
7 passed (29.7s)
|
🎭 Playwright Run Summary
28 passed (1.1m)
|
🎭 Playwright Run Summary
23 passed (1.1m)
|
🎭 Playwright Run Summary
12 passed (1.1m)
|
🎭 Playwright Run Summary
1 failed
color-picker.e2e.ts:125:3 › color-picker › [form] should reset value to initial on reset ───────
30 passed (1.7m)
|
🎭 Playwright Run Summary
1 skipped
34 passed (1.6m)
|
🎭 Playwright Run Summary
18 passed (48.8s)
|