diff --git a/spec/features/home_spec.rb b/spec/features/home_spec.rb
index 48eda6fdf..7f90f54c1 100644
--- a/spec/features/home_spec.rb
+++ b/spec/features/home_spec.rb
@@ -95,7 +95,10 @@ feature "Home" do
debate = create(:debate, tag_list: "Sport")
visit root_path
- click_on debate.title
+
+ within('#section_recommended') do
+ click_on debate.title
+ end
expect(page).to have_current_path(debate_path(debate))
end
diff --git a/spec/features/localization_spec.rb b/spec/features/localization_spec.rb
index 5c6098481..514170252 100644
--- a/spec/features/localization_spec.rb
+++ b/spec/features/localization_spec.rb
@@ -3,10 +3,16 @@ require 'rails_helper'
feature 'Localization' do
scenario 'Wrong locale' do
+ card = create(:widget_card, title: 'Bienvenido a CONSUL',
+ description: 'Software libre para la participación ciudadana.',
+ link_text: 'Más información',
+ link_url: 'http://consulproject.org/',
+ header: true)
+
visit root_path(locale: :es)
visit root_path(locale: :klingon)
- expect(page).to have_text('La ciudad que quieres será la ciudad que quieras')
+ expect(page).to have_text('Bienvenido a CONSUL')
end
scenario 'Available locales appear in the locale switcher' do