Remove redundant words in edit and destroy links

When we see a list of, let's say, banners, and each one has a link to
edit them, the word "banner" in the text "edit banner" is redundant and
adds noise; even for users with cognitive disabilities, it's obvious
that the "edit" link refers to the banner.
This commit is contained in:
Javi Martín
2021-05-30 15:01:53 +02:00
parent 25e9065913
commit 7d590031f5
23 changed files with 25 additions and 60 deletions

View File

@@ -47,7 +47,7 @@ describe "Admin booths", :admin do
expect(page).to have_content booth_for_current_poll.name
expect(page).not_to have_content booth_for_expired_poll.name
expect(page).not_to have_link "Edit booth"
expect(page).not_to have_link "Edit"
end
scenario "Show" do
@@ -82,7 +82,7 @@ describe "Admin booths", :admin do
within("#booth_#{booth.id}") do
expect(page).not_to have_link "Manage shifts"
click_link "Edit booth"
click_link "Edit"
end
fill_in "poll_booth_name", with: "Next booth"