DEV: Resolve excerpt issue in specs
This commit is contained in:
parent
66d2936562
commit
9a44505d22
|
@ -10,6 +10,11 @@ describe "Discourse Docs | Index", type: :system do
|
||||||
before do
|
before do
|
||||||
SiteSetting.docs_enabled = true
|
SiteSetting.docs_enabled = true
|
||||||
SiteSetting.docs_categories = category.id.to_s
|
SiteSetting.docs_categories = category.id.to_s
|
||||||
|
|
||||||
|
if SiteSetting.respond_to?(:tooltips_enabled)
|
||||||
|
# Unfortunately this plugin is enabled by default, and it messes with the docs specs
|
||||||
|
SiteSetting.tooltips_enabled = false
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
it "does not error when showing the index" do
|
it "does not error when showing the index" do
|
||||||
|
@ -29,6 +34,7 @@ describe "Discourse Docs | Index", type: :system do
|
||||||
|
|
||||||
it "does not show the topic excerpts by default" do
|
it "does not show the topic excerpts by default" do
|
||||||
visit("/docs")
|
visit("/docs")
|
||||||
|
expect(page).to have_css(".topic-list-item", count: 2)
|
||||||
expect(page).to have_no_css(".topic-excerpt")
|
expect(page).to have_no_css(".topic-excerpt")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue