-
Notifications
You must be signed in to change notification settings - Fork 16
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution @appreciated, I would have done the same changes myself but didn't yet get to it.
Also I had no idea (nor did @tomivirkki ) that this might get executed when the underlying iron list doens't have anything in the DOM.
@pleku I'm sure you would have 🙂.
Maybe the causes some additional resize events which then cause the grid to update itself before it is initialized 🤔? Just a guess. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @denis-anisimov)
a discussion (no related file):
Is it possible to create an IT test for this ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @denis-anisimov)
@denis-anisimov not sure since this only throws a client side exception. Note that I have pretty much no experience with Testbench. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have a scenario when a client side exception is thrown ?
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @denis-anisimov)
@denis-anisimov There is an example project in #515 which should replicate the issue, is that what you need? |
OK, so it means that it's possible to make IT test for the fix. |
@appreciated and @jflamy do you think you can add an IT to get this merged? You already have a sample project which replicates, I have no TestBench experience but I guess it should be pretty straighforward with the code you already have. |
Worth noting this might (just a guess, not tested) be fixed in the Web Component, initializing |
Any requirements for the integration-test? Can I find some coding guidelines for that anywhere? |
No any specific requirements. Just use existing code as an example. |
@appreciated, did you find out what is triggering the error? I'm not using any addon (just |
I still can't figure out what is causing this. Any chance the team will fix this for V13, if the author doesn't? |
I'm onto something. This issue only occurs if the grid is being wrapped inside a |
This is so wierd 😒. An example project with the following code can be found here Wrapping a non empty Grid: GridTest
in a Template as follows MyTemplate
polymer-template.html
Causes the issue. But there is even more:
|
@denis-anisimov I just found that I'm required to have a pro subscription to write Integration tests which I currently don't have. So I guess this need to be done by someone that has one 😓. |
Thank you @appreciated for the thorough analysis! In my case the grid is in the lightdom of a component which is a I really hope the team can fix this for the upcoming platform release! |
Worth noting that another issue in |
I cannot merge it without a test. |
It's decided to merge this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r3.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @appreciated and @denis-anisimov)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @appreciated and @denis-anisimov)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @appreciated)
* Update vaadin-grid-flow-selection-column width (#520) * Fixing IllegalStateException after new item added and dataprovider re… (#533) * Fix GridTRElement select for single select grid (#537) Cherry picked from vaadin/vaadin-components-testbench#70 Also added test using TBElement api * Do not deselect if row was not selected Cherry picked from vaadin/vaadin-components-testbench#72 * flushing _debounceIncreasePool if it is available * add integration test for focusing editor component * Refresh on client-side events only (#548) * fix #516 and fix #515 (#517)
This change is