Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 619d4c2

Browse files
committed
specs
1 parent 96c3a9d commit 619d4c2

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

spec/system/ai_bot/homepage_spec.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,22 @@
226226
expect(sidebar).to have_section_link(pm.title)
227227
end
228228

229+
it "shows empty state when no PMs exist" do
230+
pm.destroy!
231+
232+
visit "/"
233+
header.click_bot_button
234+
235+
expect(page).to have_css(".sidebar-section .ai-bot-sidebar-empty-state", visible: true)
236+
end
237+
238+
it "doesn't show empty state when a PM exists" do
239+
visit "/"
240+
header.click_bot_button
241+
242+
expect(page).to have_no_css(".sidebar-section .ai-bot-sidebar-empty-state")
243+
end
244+
229245
it "displays last_7_days label in the sidebar" do
230246
pm.update!(last_posted_at: Time.zone.now - 5.days)
231247
visit "/"

0 commit comments

Comments
 (0)