Cannot trigger RowSelected eventcallback on SFgrid #1382
Replies: 4 comments
-
I am guessing Also, you may want to consider whether you want to test the functionality of SF components thenselves, which you are essentially doing here it seems, or your own business logic. Put differently, when you are testing that a specific attribute is being added to the markup by SF components, you are testing SF components implementation detail, and not your own business logic. |
Beta Was this translation helpful? Give feedback.
-
I just used aria-selected as an example of the line being successfully selected, it itself is not that usefull. |
Beta Was this translation helpful? Give feedback.
-
In that case this is more a discussion QA than an issue, as this is not a bUnit problem but specifically a syncfusion question. I'll move it over to our QA forum. |
Beta Was this translation helpful? Give feedback.
-
There are other questions here related to SyncFusion components that may answer your question. You can also look at substituting / mocking the SF components during testing: https://bunit.dev/docs/providing-input/substituting-components.html?tabs=moq |
Beta Was this translation helpful? Give feedback.
-
Using bUnit to find a row element within a SyncFusionGrid and
clicking that element does not trigger the set RowSelected callback for that grid
Hopefully there should be a way i can trigger the RowHandler such that i can test some logic further down when it comes to multiple selected rows. But i can't get the RowSelectHandler to trigger, i have been testing this by debugging the test, with a breakpoint at the RowSelectHandler function.
Relevant SFgrid:
This code will not get past the wait for state:
Version info:
Additional context:
I am testing a system that was not made with testing in mind, so direct assignment of values is difficult.
Even though it is third party code, i would like to be able to click and check that stuff works in the grid.
Beta Was this translation helpful? Give feedback.
All reactions