Johannes Klein
|
c05bbe0060
|
Update validateProjectFieldsForObservation.test.js
|
2026-07-16 21:30:18 +02:00 |
|
Johannes Klein
|
7269d6c09f
|
Given the type of currentObservation in zustand, this should never be the case
|
2026-07-15 15:59:25 +02:00 |
|
Johannes Klein
|
40f2e11afc
|
should skip a POF without an obsField definition
|
2026-07-14 15:29:19 +02:00 |
|
Johannes Klein
|
f2c8968edd
|
should be valid when a project has no POFs
|
2026-07-14 15:27:29 +02:00 |
|
Johannes Klein
|
ce10ff40fa
|
should return MISSING_REQUIRED when observationFieldValues is undefined
|
2026-07-14 15:25:41 +02:00 |
|
Johannes Klein
|
67b8ccb7ef
|
Result should be valid when a project has no POFs
|
2026-07-14 15:25:23 +02:00 |
|
Johannes Klein
|
39b113b48f
|
should report errors in the order the projects were passed in
Not really sure yet if that is important later.
|
2026-07-14 15:23:36 +02:00 |
|
Johannes Klein
|
334955a342
|
should report only the failing project when the other is satisfied
|
2026-07-14 15:22:19 +02:00 |
|
Johannes Klein
|
54cc794860
|
should report one error per project when a shared required field is unfilled
|
2026-07-14 15:21:48 +02:00 |
|
Johannes Klein
|
f45a7e3670
|
multiple projects should be valid when one OFV satisfies two projects requiring the same field
|
2026-07-14 15:14:28 +02:00 |
|
Johannes Klein
|
574b62e5b7
|
should be valid for an optional numeric field
|
2026-07-14 14:54:13 +02:00 |
|
Johannes Klein
|
6d9475060f
|
should report a single MISSING_REQUIRED when a required numeric field is empty
|
2026-07-14 14:52:53 +02:00 |
|
Johannes Klein
|
bd2683945d
|
should return INVALID_NUMERIC for an optional numeric field with text value
|
2026-07-14 14:52:01 +02:00 |
|
Johannes Klein
|
3bf60d7888
|
should return INVALID_NUMERIC
|
2026-07-14 14:51:18 +02:00 |
|
Johannes Klein
|
be5b2426a4
|
numeric fields should be valid
|
2026-07-14 14:50:29 +02:00 |
|
Johannes Klein
|
2c7ab5d150
|
should report both fields in POF order when two required fields are unfilled
|
2026-07-13 13:04:11 +02:00 |
|
Johannes Klein
|
27382c213f
|
should report only the unfilled field when one of two required fields is filled
|
2026-07-13 13:03:06 +02:00 |
|
Johannes Klein
|
f093f5773a
|
should be valid when a required field has a non-empty OFV
|
2026-07-13 12:40:58 +02:00 |
|
Johannes Klein
|
9e7434e30f
|
should return MISSING_REQUIRED when a required field has no OFV
|
2026-07-13 12:34:57 +02:00 |
|
Johannes Klein
|
74d3d47a3d
|
should return MISSING_REQUIRED when a required field's OFV value is empty
|
2026-07-13 12:31:14 +02:00 |
|
Johannes Klein
|
09c844b2fe
|
should be valid when an optional field has no OFV
|
2026-07-13 12:28:39 +02:00 |
|
Johannes Klein
|
d6002f860e
|
validateProjectFieldsForObservation required fields should be valid when OFV is non-empty after trim
|
2026-07-13 12:25:13 +02:00 |
|
Johannes Klein
|
39f82b6d20
|
required fields should return MISSING_REQUIRED for empty value %p
|
2026-07-11 23:32:05 +02:00 |
|
Johannes Klein
|
5d82826e8c
|
required fields should return null for a non-empty value
|
2026-07-11 23:30:57 +02:00 |
|
Johannes Klein
|
8f83ec18a3
|
required fields should return null for a value that is non-empty after trim
|
2026-07-11 23:28:47 +02:00 |
|
Johannes Klein
|
e9b20cc5b5
|
optional text fields should return null
|
2026-07-11 23:24:22 +02:00 |
|
Johannes Klein
|
7020936d04
|
it should return null for empty values on an optional numeric field
|
2026-07-11 23:17:09 +02:00 |
|
Johannes Klein
|
5e10ceead6
|
numeric fields should return INVALID_NUMERIC for a non-numeric value on an optional field
|
2026-07-11 23:13:37 +02:00 |
|