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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user