Fix specs
Regarding the feature ‘Carousel size’: There is no need to test styling in specs, it changes too often There are nice ways to test it, but it seems a little too much right Review later on
This commit is contained in:
@@ -93,14 +93,16 @@ feature 'Homepage' do
|
||||
within("#widget_card_#{card1.id}") do
|
||||
expect(page).to have_content("Card text")
|
||||
expect(page).to have_content("Card description")
|
||||
expect(page).to have_link("Link text", href: "consul.dev")
|
||||
expect(page).to have_content("Link text")
|
||||
expect(page).to have_link(href: "consul.dev")
|
||||
expect(page).to have_css("img[alt='#{card1.image.title}']")
|
||||
end
|
||||
|
||||
within("#widget_card_#{card2.id}") do
|
||||
expect(page).to have_content("Card text2")
|
||||
expect(page).to have_content("Card description2")
|
||||
expect(page).to have_link("Link text2", href: "consul.dev2")
|
||||
expect(page).to have_content("Link text2")
|
||||
expect(page).to have_link(href: "consul.dev2")
|
||||
expect(page).to have_css("img[alt='#{card2.image.title}']")
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user