-
I added the "exercise for the reader" test to check that when you delete the last attendee, a new one is added so that the list is not empty. (here) I think I understand all the concepts presented so far and felt confident about this test but it is not passing:
In the SyncUpForm reducer I have used the dependency like this
I keep getting this test result with whatever Attendee ID was created by my test.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
So apparently the logic that adds an attendee when you remove the last one was missing dealing with focus. As it is in the tutorial, if the focus was on the removed attendee, it is not changed to the new one. That's why I had an expectation mismatch on the focus. I fixed it like this:
|
Beta Was this translation helpful? Give feedback.
So apparently the logic that adds an attendee when you remove the last one was missing dealing with focus. As it is in the tutorial, if the focus was on the removed attendee, it is not changed to the new one. That's why I had an expectation mismatch on the focus.
I fixed it like this: