Use a button instead of a link to block users

We're continuing to replace links with buttons, for the reasons
explained in commit 5311daadf.

We're also adding an ARIA label since on the same page there might be
several links to block different users.
This commit is contained in:
Javi Martín
2021-12-01 19:35:16 +01:00
parent 9a8a8ce5ce
commit 600a2bd4c2
8 changed files with 15 additions and 9 deletions

View File

@@ -75,7 +75,7 @@ describe "Moderate budget investments" do
click_button "Search"
within "tr", text: investment.author.name do
expect(page).to have_link "Block"
expect(page).to have_button "Block"
end
end