Uh oh!
There was an error while loading. Please reload this page.
Add assert_react_component method for test react_component render result - #957
Conversation
BookOfGreg
left a comment
There was a problem hiding this comment.
This is a wonderful submission, well written and useful.
Thank you for the contribution!
I have a couple comments that might be able to improve it further and I'd welcome your thoughts on those points.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This is good work. I will need to look into why the tests are failing before merge, based on the current Travis-ci run 1505 and 1506 but then OK to merge. Edit: |
huacnlee
commented
Jan 4, 2019
@BookOfGreg See here example of ActionMailer: How a about here change to: ActiveSupport.on_load(:action_view)doinclude ::React::Rails::ViewHelperActionDispatch::IntegrationTest.send:include,React::Rails::TestHelperend |
BookOfGreg
commented
Jan 4, 2019
If it's good enough for Rails, it's good enough for me :) I'll accept that suggestion. |
huacnlee
commented
Jan 4, 2019
@BookOfGreg just updated |
BookOfGreg
commented
Jan 4, 2019
I'll clean up whatever is wrong with the test suite. Thank you for the contribution. I'll try get a release out in the coming weeks. |
Is it possible to use |
eelkevdbos
commented
Feb 2, 2022
@cacods, I expect you need a feature test for this because it would involve actually initializing the server rendered dom elements into full react components. The current assert_react_components helper does only asserts the existence of a |
Uh oh!
There was an error while loading. Please reload this page.