-
-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(gridService): addItem/updatedItemById must pass an array to setSelectedRows #308
fix(gridService): addItem/updatedItemById must pass an array to setSelectedRows #308
Conversation
Codecov Report
@@ Coverage Diff @@
## master #308 +/- ##
=======================================
Coverage 97.28% 97.28%
=======================================
Files 135 135
Lines 7644 7644
Branches 2593 2594 +1
=======================================
Hits 7436 7436
Misses 208 208
Continue to review full report at Codecov.
|
Wow good catch, I never noticed the bug, I think we need to modify some unit tests to make sure |
ok I will watch to change the tests as soon as I have some time ;-) |
I took a quick look at the tests I have and I think I forgot to add a test for the selected row when using the singular Below is basically what is missing in the test (there is more code than that, it's just to show how it works). const selectSpy = jest.spyOn(gridStub, 'setSelectedRows');
service.addItem(mockItem, { selectRow: true });
expect(selectSpy).toHaveBeenCalledWith([0]); |
Merge pull request ghiscoding#307 from ljacques/feature/fix-fieldtype-filter-co…
fix upsertItems ( setSelectedRows with bad Array Type )
I d'ont know why but my last changes seem to affect a cypress test call |
and now it's ok .... ^^ |
I think that's the test that sometime fails (1/10) and re-running them works after. Why does your commit removes all spaces in objects? It's really hard to see what changed, I use VSCode, are you using another editor? I can hide white space changes in GitHub but even then, It changed format of the entire file, it's really hard to see what changed since the entire test file is touched lol. |
oups i'am using itellij and I mechanically apply automatic formatting. |
ahh that is much better, thanks 😃 |
héhé merci c'est ok j'ai récupéré la release le Prod Build passe bien 😃 |
replace setSelectedRows to setSelectedRow