From b68f9a3c9ccbbffa4876bfd97bdb8141b36d9b3b Mon Sep 17 00:00:00 2001 From: Anna Topalidi Date: Fri, 6 Sep 2024 18:43:54 +0200 Subject: [PATCH] fix tests --- decidim-core/app/packs/src/decidim/clipboard.js | 2 +- decidim-initiatives/spec/system/filter_initiatives_spec.rb | 2 +- .../spec/shared/manage_process_components_examples.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/decidim-core/app/packs/src/decidim/clipboard.js b/decidim-core/app/packs/src/decidim/clipboard.js index b67ee2b3fcb5..a2bee0d3ef1a 100644 --- a/decidim-core/app/packs/src/decidim/clipboard.js +++ b/decidim-core/app/packs/src/decidim/clipboard.js @@ -135,7 +135,7 @@ const announceToScreenReader = ($el, message) => { announcementMessage += " "; } } else { - $msg = $('
'); + $msg = $('
'); $el.after($msg); $el.data("clipboard-message-element", $msg); } diff --git a/decidim-initiatives/spec/system/filter_initiatives_spec.rb b/decidim-initiatives/spec/system/filter_initiatives_spec.rb index f20e813b7a5b..2671f8439d40 100644 --- a/decidim-initiatives/spec/system/filter_initiatives_spec.rb +++ b/decidim-initiatives/spec/system/filter_initiatives_spec.rb @@ -80,7 +80,7 @@ within ".order-by__dropdown" do expect(page).to have_selector("ul[data-dropdown-menu$=dropdown-menu]", text: "Random") - page.find("a", text: "Random").click + page.find("a", text: "Random", visible: true).click click_link "Most commented" end diff --git a/decidim-participatory_processes/spec/shared/manage_process_components_examples.rb b/decidim-participatory_processes/spec/shared/manage_process_components_examples.rb index 461bcfe83027..694322534171 100644 --- a/decidim-participatory_processes/spec/shared/manage_process_components_examples.rb +++ b/decidim-participatory_processes/spec/shared/manage_process_components_examples.rb @@ -24,7 +24,7 @@ find(".dummy").click end - within ".item__edit-form .new_component" do + within ".new_component" do fill_in_i18n( :component_name, "#component-name-tabs",