fix: serialize intent value #1292
Annotations
1 error and 1 notice
Run Playwright tests:
tests/integrations/async-validation.spec.ts#L127
1) [firefox] › async-validation.spec.ts:138:6 › With JS › Client Validation ──────────────────────
Error: expect(received).toStrictEqual(expected) // deep equality
- Expected - 1
+ Received + 6
@@ -5,7 +5,12 @@
],
"initialValue": Object {
"email": "hey@conform.guide",
"title": "Software Developer",
},
- "status": "success",
+ "intent": Object {
+ "payload": Object {
+ "name": "email",
+ },
+ "type": "validate",
+ },
}
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
125 | await expect(playground.error).toHaveText(['', '']);
126 |
> 127 | await expect.poll(playground.result).toStrictEqual({
| ^
128 | status: 'success',
129 | initialValue: {
130 | email: 'hey@conform.guide',
at runTest (/home/runner/work/conform/conform/tests/integrations/async-validation.spec.ts:127:39)
at /home/runner/work/conform/conform/tests/integrations/async-validation.spec.ts:140:3
|
Run Playwright tests
1 flaky
[firefox] › async-validation.spec.ts:138:6 › With JS › Client Validation ───────────────────────
9 skipped
99 passed (1.8m)
|
Loading