Replace link with button in letter verification

This commit is contained in:
cyrillefr
2025-04-25 08:48:27 +02:00
parent c989210e74
commit f0e696b972
4 changed files with 7 additions and 3 deletions

View File

@@ -1154,6 +1154,10 @@ form {
line-height: rem-calc(120); line-height: rem-calc(120);
vertical-align: top; vertical-align: top;
} }
button {
@include link;
}
} }
} }

View File

@@ -42,7 +42,7 @@
<%= t("verification.letter.new.office") %> <%= t("verification.letter.new.office") %>
</li> </li>
<li> <li>
<%= link_to t("verification.letter.new.send_letter"), letter_path, method: :post %> <%= button_to t("verification.letter.new.send_letter"), letter_path %>
</li> </li>
</ul> </ul>
</div> </div>

View File

@@ -8,7 +8,7 @@ describe "Verify Letter" do
login_as(user) login_as(user)
visit new_letter_path 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 " \ expect(page).to have_content "Thank you for requesting your maximum security code " \
"(only required for the final votes). In a few days " \ "(only required for the final votes). In a few days " \

View File

@@ -76,7 +76,7 @@ describe "Level three verification" do
verify_residence verify_residence
confirm_phone(code: "1234") 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 " \ expect(page).to have_content "Thank you for requesting your maximum security code " \
"(only required for the final votes). In a few days " \ "(only required for the final votes). In a few days " \