Skip to content

Commit

Permalink
Fix flaky spec on bulk change taxonomies (decidim#13724)
Browse files Browse the repository at this point in the history
Co-authored-by: Ivan Vergés <Ivan Vergés>
  • Loading branch information
microstudi authored Dec 4, 2024
1 parent ba6947d commit 24568e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion decidim-budgets/spec/system/admin_manages_projects_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 24568e5

Please sign in to comment.