This repository was archived by the owner on Jul 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-16
lines changed Expand file tree Collapse file tree 2 files changed +5
-16
lines changed Original file line number Diff line number Diff line change 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
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
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
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
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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments