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