test: refs #7052 add unit tests for EditTableCellValueForm component #1104
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix-front#1104
Loading…
Reference in New Issue
No description provided.
Delete Branch "7052-testEditTableCellValueForm"
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?
@ -0,0 +42,4 @@
const payload = axios.post.mock.calls[0][1];
expect(axios.post).toHaveBeenCalledWith(editUrl, expect.any(Object));
expect(payload.field).toEqual('fieldA');
ya que has declarado el valor en selectedField.field, úsalo para que el valor literal solamente esté 1 vez
@ -0,0 +43,4 @@
expect(axios.post).toHaveBeenCalledWith(editUrl, expect.any(Object));
expect(payload.field).toEqual('fieldA');
expect(payload.newValue).toEqual('Test Value');
Es lo mismo que poner newValue, no?
@ -0,0 +46,4 @@
expect(payload.newValue).toEqual('Test Value');
expect(payload.lines).toContainEqual(
expect.objectContaining({ id: 1, itemFk: 101 })
mockRows?