From f6bd0d815fef32b89ea94ce5e7fdd59e616fd715 Mon Sep 17 00:00:00 2001 From: David F Date: Thu, 26 Mar 2026 10:46:47 +0100 Subject: [PATCH] Fix tests on CI. wp/72383 --- spec/features/roles/create_spec.rb | 2 +- spec/features/types/crud_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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