From 24568e5328b486d878025ab59bab4cf88fb92701 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Verg=C3=A9s?= Date: Thu, 5 Dec 2024 00:52:43 +0100 Subject: [PATCH] Fix flaky spec on bulk change taxonomies (#13724) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Ivan Vergés --- decidim-budgets/spec/system/admin_manages_projects_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/decidim-budgets/spec/system/admin_manages_projects_spec.rb b/decidim-budgets/spec/system/admin_manages_projects_spec.rb index f09690a2d7cf0..0d11de08b26d6 100644 --- a/decidim-budgets/spec/system/admin_manages_projects_spec.rb +++ b/decidim-budgets/spec/system/admin_manages_projects_spec.rb @@ -49,7 +49,9 @@ select decidim_sanitize_translated(another_taxonomy.name), from: "taxonomies_for_filter_#{another_taxonomy_filter.id}" click_on "Change taxonomies" - expect(page).to have_admin_callout "Projects successfully updated to the #{translated(taxonomy.name)} and #{translated(another_taxonomy.name)} taxonomies" + expect(page).to have_admin_callout "Projects successfully updated" + expect(page).to have_admin_callout translated(taxonomy.name) + expect(page).to have_admin_callout translated(another_taxonomy.name) expect(Decidim::Budgets::Project.find(project.id).taxonomies.first).to eq(taxonomy) expect(Decidim::Budgets::Project.find(project2.id).taxonomies.first).to be_nil end