refactor: refs #8718 simplify VnAccountNumber component and remove obsolete tests #1645
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix-front#1645
Loading…
Reference in New Issue
No description provided.
Delete Branch "8718-hotfix-vnAccount"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -32,2 +11,2 @@
:insertable
@update:model-value="handleUpdateModel"
@keydown.tab="model = useAccountShortToStandard($event.target.value) ?? model"
@input="model = $event.target.value.replace(/[^\d.]/g, '')"
Para que solo admita números y punto.
@ -1,37 +0,0 @@
describe('VnAccountNumber', () => {
useAccountShortToStandard ya tiene sus propios tests. Lo único que se podría testear es @input pero cypress se ralla con este evento y hasta que no pierde el foco no hace el replace, cosa que si lo hago yo funciona como toca.
@ -31,3 +10,2 @@
ref="inputRef"
:insertable
@update:model-value="handleUpdateModel"
@keydown.tab="model = useAccountShortToStandard($event.target.value) ?? model"
Si useAccount falla hace model = model?