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

Commit 508a61a

Browse files
committed
update tests
1 parent 83f447b commit 508a61a

File tree

2 files changed

+5
-16
lines changed

2 files changed

+5
-16
lines changed

spec/system/ai_bot/homepage_spec.rb

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,7 @@
222222
header.click_bot_button
223223

224224
expect(ai_pm_homepage).to have_homepage
225-
expect(sidebar).to have_section("ai-conversations-history")
226-
expect(sidebar).to have_section_link("Today")
225+
expect(sidebar).to have_section("Today")
227226
expect(sidebar).to have_section_link(pm.title)
228227
end
229228

@@ -233,7 +232,7 @@
233232
header.click_bot_button
234233

235234
expect(ai_pm_homepage).to have_homepage
236-
expect(sidebar).to have_section_link("Last 7 days")
235+
expect(sidebar).to have_section("Last 7 days")
237236
end
238237

239238
it "displays last_30_days label in the sidebar" do
@@ -242,7 +241,7 @@
242241
header.click_bot_button
243242

244243
expect(ai_pm_homepage).to have_homepage
245-
expect(sidebar).to have_section_link("Last 30 days")
244+
expect(sidebar).to have_section("Last 30 days")
246245
end
247246

248247
it "displays month and year label in the sidebar for older conversations" do
@@ -251,7 +250,7 @@
251250
header.click_bot_button
252251

253252
expect(ai_pm_homepage).to have_homepage
254-
expect(sidebar).to have_section_link("Apr 2024")
253+
expect(sidebar).to have_section("Apr 2024")
255254
end
256255

257256
it "navigates to the bot conversation when clicked" do
@@ -328,12 +327,6 @@
328327
expect(sidebar).to have_no_section_link(pm.title)
329328
end
330329

331-
it "renders empty state in sidebar with no bot PM history" do
332-
sign_in(user_2)
333-
ai_pm_homepage.visit
334-
expect(ai_pm_homepage).to have_empty_state
335-
end
336-
337330
it "Allows choosing persona and LLM" do
338331
ai_pm_homepage.visit
339332

spec/system/page_objects/components/ai_pm_homepage.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,9 @@ def click_new_question_button
5252
page.find(".ai-new-question-button").click
5353
end
5454

55-
def has_empty_state?
56-
page.has_css?(".ai-bot-sidebar-empty-state")
57-
end
58-
5955
def click_fist_sidebar_conversation
6056
page.find(
61-
".sidebar-section[data-section-name='ai-conversations-history'] a.sidebar-section-link:not(.date-heading)",
57+
".sidebar-section-content a.sidebar-section-link",
6258
).click
6359
end
6460

0 commit comments

Comments
 (0)