Add tests for pausable Frame Rendering#635
Merged
dhh merged 2 commits intohotwired:mainfrom Jul 18, 2022
Merged
Conversation
Follow-up to hotwired#431 Support for the `turbo:before-frame-render` event relies on the same underlying infrastructure as the `turbo:before-render` event (i.e. the `Renderer` abstract class). As a result of re-using that abstraction, listeners for the `turbo:before-frame-render` event can also leverage the `detail.resume` function in the same way to handle asynchronous rendering. The changes made in [hotwired#431][] excluded test coverage for that behavior. This commit adds that coverage to guard against regressions in that behvaior. [hotwired#431]: hotwired#431
f8ac6c6 to
59c9520
Compare
Follow-up to hotwired#633 The flaky test outlined in [hotwired#633][] was "flaky", but not in the sense that was originally suspected. Somehow, it was presenting as a false negative, failing when we thought it should consistently pass. On further inspection, it was _passing when it should consistently fail_. This commit addresses the underlying issue by copying any `[data-turbo-frame]` attributes onto the `<form>` element from the `<a>` element that is clicked outside of the targeted `<turbo-frame>`. [hotwired#633]: hotwired#633
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #431
Support for the
turbo:before-frame-renderevent relies on the sameunderlying infrastructure as the
turbo:before-renderevent (i.e. theRendererabstract class). As a result of re-using that abstraction,listeners for the
turbo:before-frame-renderevent can also leveragethe
detail.resumefunction in the same way to handle asynchronousrendering.
The changes made in hotwired/turbo#431 excluded test coverage for
that behavior. This commit adds that coverage to guard against
regressions in that behvaior.