diff --git a/spec/features/roles/create_spec.rb b/spec/features/roles/create_spec.rb index cc1daa30a3b..799786c533b 100644 --- a/spec/features/roles/create_spec.rb +++ b/spec/features/roles/create_spec.rb @@ -108,7 +108,7 @@ RSpec.describe "Role creation", :js do # Workflow routes are not resource-oriented. visit(url_for(controller: :workflows, action: :index, only_path: true)) within "li", text: type.name do - click_link "Edit" + click_link type.name end click_button existing_role.name diff --git a/spec/features/types/crud_spec.rb b/spec/features/types/crud_spec.rb index dff0aea0885..b461fe414a0 100644 --- a/spec/features/types/crud_spec.rb +++ b/spec/features/types/crud_spec.rb @@ -71,7 +71,7 @@ RSpec.describe "Types", :js do # Workflow routes are not resource-oriented. visit(url_for(controller: :workflows, action: :index, only_path: true)) within "li", text: "A new type" do - click_link "Edit" + click_link "A new type" end from_id = existing_workflow.old_status_id