DEV: port sidebar new topic component into theme (#129)

This moves the [sidebar new topic button
component](https://github.com/discourse/discourse-sidebar-new-topic-button)
into the theme directly

If you have installed this theme previously, you should manually remove
the component.
This commit is contained in:
Kris
2025-04-14 08:58:46 -04:00
committed by GitHub
parent b40a5a6e9a
commit 1e6a4a8a57
7 changed files with 207 additions and 3 deletions
@@ -0,0 +1,11 @@
# frozen_string_literal: true
RSpec.describe "Sidebar New Topic Button", system: true do
before { upload_theme }
it "does not render the sidebar button for anons" do
visit("/latest")
expect(page).not_to have_css(".sidebar-new-topic-button__wrapper")
expect(page).not_to have_css(".sidebar-new-topic-button:not(.disabled)")
end
end