Reuse partial to render a banner

This commit is contained in:
Javi Martín
2019-11-10 23:10:23 +01:00
parent 55d339572c
commit 6cb3047da2
5 changed files with 11 additions and 22 deletions

View File

@@ -164,7 +164,7 @@ describe "Admin banners magement" do
page.find("body").click
within("div#js-banner-background") do
within(".banner") do
expect(page).to have_selector("h2", text: "Modified title")
expect(page).to have_selector("h3", text: "Edited text")
end