Replace link with button in letter verification
This commit is contained in:
@@ -1154,6 +1154,10 @@ form {
|
||||
line-height: rem-calc(120);
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
button {
|
||||
@include link;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
<%= t("verification.letter.new.office") %>
|
||||
</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>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -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 " \
|
||||
|
||||
@@ -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 " \
|
||||
|
||||
Reference in New Issue
Block a user