Changes test for pagination
This commit is contained in:
@@ -26,6 +26,7 @@ data:
|
||||
- config/locales/moderation.%{locale}.yml
|
||||
- config/locales/devise_views.%{locale}.yml
|
||||
- config/locales/responders.%{locale}.yml
|
||||
- config/locales/kaminari.%{locale}.yml
|
||||
|
||||
# Locale files to write new keys to, based on a list of key pattern => file rules. Matched from top to bottom:
|
||||
# `i18n-tasks normalize -p` will force move the keys according to these rules
|
||||
|
||||
@@ -27,7 +27,7 @@ feature 'Comments' do
|
||||
visit debate_path(debate)
|
||||
|
||||
expect(page).to have_css('.comment', count: per_page)
|
||||
within("nav.pagination") do
|
||||
within("ul.pagination") do
|
||||
expect(page).to have_content("1")
|
||||
expect(page).to have_content("2")
|
||||
expect(page).to_not have_content("3")
|
||||
|
||||
@@ -24,7 +24,7 @@ feature 'Debates' do
|
||||
|
||||
expect(page).to have_selector('#debates .debate', count: per_page)
|
||||
|
||||
within("nav.pagination") do
|
||||
within("ul.pagination") do
|
||||
expect(page).to have_content("1")
|
||||
expect(page).to have_content("2")
|
||||
expect(page).to_not have_content("3")
|
||||
|
||||
Reference in New Issue
Block a user