Skip to content

Commit 764be55

Browse files
committed
Add test to check if footer exists in Top #192
1 parent e21d91e commit 764be55

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

spec/features/top_spec.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@
22

33
RSpec.feature "Top", type: :feature do
44
describe "GET /" do
5-
scenario "Sponser links should be exist" do
5+
scenario "Each section should exist" do
66
visit "/"
7-
expect(page).to have_css 'section.sponsors_logo a[href]'
7+
expect(page).to have_title 'CoderDojo Japan'
8+
expect(page).to have_text '全国の道場'
9+
expect(page).to have_css 'section.sponsors_logo a[href]'
10+
expect(page).to have_text '問い合わせ'
11+
expect(page).to have_text '一般社団法人'
812
end
913
end
1014
end

0 commit comments

Comments
 (0)