Closed Lionqueen94 closed 1 week ago
@Lionqueen94 Ik ben ze allemaal langsgelopen. Zie hieronder. Alles met een unchecked checkbox werkte nog niet
Most of the unchecked ones are not implemented yet because they are to be done in other issues that are part of #99.
@jorisleker Thanks a lot for testing everything! Have I implemented the multiple errors/warnings at once design well also? What @praseodym says is correct, the plausibility checks in the W range still will be implemented in this epic. F.204, F.301 and F.303 should be fixed after https://github.com/kiesraad/abacus/pull/233 will be merged.
@Lionqueen94 Yes, multiple errors on 1 page is implemented according to design, however, it would be nicer to sort the errors/warnings based on their code (saw a case where F.202 was shown before F.201)
Wasn't completely sure which warnings/errors to test, so just tested all of them :-)
@jorisleker F.201-F.203 should be in order now, and these should have been the only ones that potentially were out of order. Please let me know if there are any other issues with ordering if you see them.
@jorisleker I have added the remaining plausibility checks, you can test W.206-208 on stembureau 34, which now has 50 kiesgerechtigden in the database.
@Lionqueen94, tested the rules you added:
[x] Order of warnings when there are multiple is ok now for W.201 & 202
[ ] Order of warnings still wrong in various cases, ie A 200, D 200, E 100, H 100 -> W.207, W.206, W.203 (one example, seen multiple others with the 200 range.
[x] W.203
[x] W.204
[ ] W.205 is shown immediately when I open /numbers
, should be after submit.
[x] W.206
[x] W.207
[x] W.208
[ ] It's hard to come up with case where W.206 and W.207/W.208 are not triggered at the same time (because toegelaten kiezers and uitgebrachte stemmen should not differ that much). I think it will be better to combine these two checks into one rule. (tested stembureau 34 with A, D, E & H set to 100)
[ ] Small design issue: the warning code needs a bit more padding on the left side (1.5rem should be fine), and it should top-align with the text of the warning, even if that wraps over multiple lines:
@Lionqueen94 Can you update the d2d tests for displaying an error / a warning on the Voters and Votes page to be a more specific now that we have the design fully implemented?
We might also want to add some more d2d tests for errors/warnings, but that makes more sense to do in #233, so we can take navigation etc into account.
We might also want to add some more d2d tests for errors/warnings, but that makes more sense to do in #233, so we can take navigation etc into account.
Let's not add more work to #233. After 233 has been merged, it makes sense to add these tests here.
We might also want to add some more d2d tests for errors/warnings, but that makes more sense to do in #233, so we can take navigation etc into account.
Let's not add more work to #233. After 233 has been merged, it makes sense to add these tests here.
@jorisleker Can you review again and check the issues that are now fixed in your previous comments? The errors/warnings showing too early should be fixed once Les' PR is merged, but I'll test it then to confirm.
Re-tested
New issue:
/numbers
for a polling station with number of kiesgerechtigden filled in. It is not shown if number of kiesgerechtigden is not filled in. Fields D and/or H are only hightlighted when they are actually higher then the number of kiesgerechtigdenNew issue:
* [ ] W.206 is always shown, no matter which numbers I enter. Can't get it to go away. It is shown immediately when I load `/numbers` for a polling station with number of kiesgerechtigden filled in. It is not shown if number of kiesgerechtigden is not filled in. Fields D and/or H are only hightlighted when they are actually higher then the number of kiesgerechtigden
This is fixed in 106b7bc6f1a4ab707162fae7e43b49603e870a4d
I removed 164e034 from this PR because it was already merged as part of #281. @Lionqueen94 please make sure not to include that commit when you update this branch.
Resolved merge conflict.
Closes #136 Closes #85 Closes #86 Closes #185 Closes #150 Closes #151 Closes #186