Updates localization and home specs
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<div class="section-recommended">
|
||||
<div id="section_recommended" class="section-recommended">
|
||||
<div class="row">
|
||||
|
||||
<div class="small-12 column">
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user