-
-
Notifications
You must be signed in to change notification settings - Fork 266
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
feature: allow actions to render turbo streams #2796
Changes from 6 commits
aa96f6f
256454b
3850c27
e93124a
c25ab93
f3c3d3b
5b53f80
5b269f4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -188,6 +188,7 @@ | |
|
||
fill_in "user_first_name", with: "First name should persist after action." | ||
|
||
expect(page).to have_title("Create new user — Avocadelicious") | ||
|
||
click_on "Actions" | ||
click_on "Close modal" | ||
|
@@ -196,6 +197,7 @@ | |
click_on "Run" | ||
expect(page).not_to have_selector(modal) | ||
expect(page).to have_text "Modal closed!!" | ||
expect(page).to have_title("Cool title") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [rubocop] reported by reviewdog 🐶 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [rubocop] reported by reviewdog 🐶 |
||
expect(page).to have_field('user_first_name', with: 'First name should persist after action.') | ||
end | ||
end | ||
|
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.
Haven't we settled on using an array notation?
I mean, why the extra block?
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.
I guess we could do
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.
Forget about it. A block is enough. I hope users don't mistake it for the Execution Context.
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.
LEt's also discuss this possibility