diff --git a/app/assets/stylesheets/layout.scss b/app/assets/stylesheets/layout.scss index 3b51aa791..b767d1be6 100644 --- a/app/assets/stylesheets/layout.scss +++ b/app/assets/stylesheets/layout.scss @@ -1154,6 +1154,10 @@ form { line-height: rem-calc(120); vertical-align: top; } + + button { + @include link; + } } } diff --git a/app/views/verification/letter/new.html.erb b/app/views/verification/letter/new.html.erb index 60b38f9ae..2ea30ab88 100644 --- a/app/views/verification/letter/new.html.erb +++ b/app/views/verification/letter/new.html.erb @@ -42,7 +42,7 @@ <%= t("verification.letter.new.office") %>
  • - <%= link_to t("verification.letter.new.send_letter"), letter_path, method: :post %> + <%= button_to t("verification.letter.new.send_letter"), letter_path %>
  • diff --git a/spec/system/verification/letter_spec.rb b/spec/system/verification/letter_spec.rb index 5905677fc..6d4a7a3af 100644 --- a/spec/system/verification/letter_spec.rb +++ b/spec/system/verification/letter_spec.rb @@ -8,7 +8,7 @@ describe "Verify Letter" do login_as(user) visit new_letter_path - click_link "Send me a letter with the code" + click_button "Send me a letter with the code" expect(page).to have_content "Thank you for requesting your maximum security code " \ "(only required for the final votes). In a few days " \ diff --git a/spec/system/verification/level_three_verification_spec.rb b/spec/system/verification/level_three_verification_spec.rb index c692e1f3b..3df265ace 100644 --- a/spec/system/verification/level_three_verification_spec.rb +++ b/spec/system/verification/level_three_verification_spec.rb @@ -76,7 +76,7 @@ describe "Level three verification" do verify_residence confirm_phone(code: "1234") - click_link "Send me a letter with the code" + click_button "Send me a letter with the code" expect(page).to have_content "Thank you for requesting your maximum security code " \ "(only required for the final votes). In a few days " \