diff --git a/app/views/cards/comments/_new.html.erb b/app/views/cards/comments/_new.html.erb index 46e6333b0..cd46d7cb4 100644 --- a/app/views/cards/comments/_new.html.erb +++ b/app/views/cards/comments/_new.html.erb @@ -13,13 +13,16 @@ data: { local_save_target: "input", action: "lexxy:change->form#disableSubmitWhenInvalid lexxy:change->local-save#save turbo:morph-element->local-save#restoreContent" } do %> <%= general_prompts(@card.board) %> <% end %> - <%= form.button class: "comment__submit btn btn--reversed flex-item-justify-start", - data: { form_target: "submit" }, disabled: true do %> - Post this comment - + + + <%= form.button class: "comment__submit btn btn--reversed", + data: { form_target: "submit" }, disabled: true do %> + Post + <% end %> + <%= hotkey_label([ "ctrl", "enter" ]) %> - <% end %> + <% end %> diff --git a/test/system/smoke_test.rb b/test/system/smoke_test.rb index 76c601024..d899aa450 100644 --- a/test/system/smoke_test.rb +++ b/test/system/smoke_test.rb @@ -27,7 +27,7 @@ class SmokeTest < ApplicationSystemTestCase assert_selector "figcaption input[placeholder='moon.jpg']" end - click_on "Post this comment" + click_on "Post" within("action-text-attachment") do assert_selector "a img[src*='/rails/active_storage']"