3131 Suche nach ungültigen Wahlscheinen muss auch nicht Ziffernzeichen erlauben#3138
Hidden character warning
Conversation
📝 WalkthroughWalkthroughThe invalid ballot number field was changed from a numeric input to a textarea. Its state, validation rule, and change handler now accept strings. Tests were updated to use Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
wls-gui-wahllokalsystem/tests/components/wahlhandlung/TheUngueltigeWahlscheineVerifyCard.spec.ts (1)
243-244: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winAdd coverage for an alphanumeric ballot number.
The changed flow still enters only
"123", so it would pass even if numeric-only input were accidentally restored. Add a test using a known fixture such asW-11-162-00-1234567and verify the search/reset behavior with that value.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@wls-gui-wahllokalsystem/tests/components/wahlhandlung/TheUngueltigeWahlscheineVerifyCard.spec.ts` around lines 243 - 244, Add coverage in TheUngueltigeWahlscheineVerifyCard test around wahlscheinnummerInput using the alphanumeric fixture W-11-162-00-1234567 instead of only the numeric value. Verify that the search and reset behavior succeeds with this value, preserving the existing test flow.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In
`@wls-gui-wahllokalsystem/tests/components/wahlhandlung/TheUngueltigeWahlscheineVerifyCard.spec.ts`:
- Around line 243-244: Add coverage in TheUngueltigeWahlscheineVerifyCard test
around wahlscheinnummerInput using the alphanumeric fixture W-11-162-00-1234567
instead of only the numeric value. Verify that the search and reset behavior
succeeds with this value, preserving the existing test flow.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: f1064153-ed09-416d-a418-822146bdd6ff
⛔ Files ignored due to path filters (8)
wls-gui-wahllokalsystem/tests/components/wahlhandlung/__snapshots__/TheUngueltigeWahlscheineVerifyCard.vue/visual logic/should_renderEmptyCard_when_mounted.htmlis excluded by!**/visual logic/**.htmlwls-gui-wahllokalsystem/tests/components/wahlhandlung/__snapshots__/TheUngueltigeWahlscheineVerifyCard.vue/visual logic/should_renderInvalidWahlscheinWithDisabledSaveButtonAndChangeSearchButtonLabel_when_wahlscheinnummerIsPartOfUngueltigeWahlscheine.htmlis excluded by!**/visual logic/**.htmlwls-gui-wahllokalsystem/tests/components/wahlhandlung/__snapshots__/TheUngueltigeWahlscheineVerifyCard.vue/visual logic/should_renderInvalidWahlscheinWithEnabledSaveButtonAndChangeSearchButtonLabel_when_wahlscheinnummerIsPartOfUngueltigeWahlscheineAndAbstimmungEingetragen.htmlis excluded by!**/visual logic/**.htmlwls-gui-wahllokalsystem/tests/components/wahlhandlung/__snapshots__/TheUngueltigeWahlscheineVerifyCard.vue/visual logic/should_renderRefreshButtonInLoadingState_when_ungueltigeWahlscheineLoadingIsTrue.htmlis excluded by!**/visual logic/**.htmlwls-gui-wahllokalsystem/tests/components/wahlhandlung/__snapshots__/TheUngueltigeWahlscheineVerifyCard.vue/visual logic/should_renderValidWahlscheinAndChangeSearchButtonLabel_when_wahlscheinnummerIsNotPartOfUngueltigeWahlscheine.htmlis excluded by!**/visual logic/**.htmlwls-gui-wahllokalsystem/tests/components/wahlhandlung/__snapshots__/TheUngueltigeWahlscheineVerifyCard.vue/visual logic/should_renderWarning_when_noDataIsAvailable.htmlis excluded by!**/visual logic/**.htmlwls-gui-wahllokalsystem/tests/components/wahlhandlung/__snapshots__/TheUngueltigeWahlscheineVerifyCard.vue/visual logic/should_renderWarning_when_noLoadingOfListeFailed.htmlis excluded by!**/visual logic/**.htmlwls-gui-wahllokalsystem/tests/components/wahlhandlung/__snapshots__/TheUngueltigeWahlscheineVerifyCard.vue/visual logic/should_renderWithRequiredErrorMessage_when_wahlscheinNummerInputIsSetEmpty.htmlis excluded by!**/visual logic/**.html
📒 Files selected for processing (2)
wls-gui-wahllokalsystem/src/components/wahlhandlung/TheUngueltigeWahlscheineVerifyCard.vuewls-gui-wahllokalsystem/tests/components/wahlhandlung/TheUngueltigeWahlscheineVerifyCard.spec.ts
Beschreibung:
Eingabefeld zur Wahlscheinnummer als VTextarea
Weitere Regeln für das neue Inputfeld können nach der Migrationsbereitswahl, wie im Issue nachträglich beschrieben, ergänzt werden. Neues Issue hierfür #3159
Definition of Done (DoD):
Frontend
Referenzen1:
Closes #3131
Summary by CodeRabbit
Bug Fixes
Tests
Footnotes
Nicht zutreffende Referenzen vor dem Speichern entfernen ↩