This repository was archived by the owner on Jul 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 109109 before { SiteSetting . glimmer_post_stream_mode = value }
110110
111111 context "when glimmer_post_stream_mode=#{ value } " do
112+ context "when mobile" , mobile : true do
113+ it "allows navigating from AI conversation to regular topic, and loads new post stream" do
114+ regular_topic = Fabricate ( :topic )
115+ regular_post = Fabricate ( :post , topic : regular_topic )
116+
117+ post_url = Topic . relative_url ( regular_topic . id , regular_topic . slug )
118+ post_with_link =
119+ Fabricate (
120+ :post ,
121+ topic : pm ,
122+ user : user ,
123+ post_number : 4 ,
124+ raw : "This is a second reply by the user [link](#{ post_url } )" ,
125+ )
126+
127+ topic_page . visit_topic ( pm )
128+ link =
129+ page . find ( "article[data-post-id='#{ post_with_link . id } '] .cooked a[href='#{ post_url } ']" )
130+ link . click
131+
132+ try_until_success do
133+ expect ( topic_page . current_topic ) . to eq ( regular_topic )
134+ expect ( page ) . to have_css ( "article[data-post-id='#{ regular_post . id } ']" )
135+ end
136+ end
137+ end
138+
112139 context "when `ai_bot_enable_dedicated_ux` is enabled" do
113140 it "allows uploading files to a new conversation" do
114141 ai_pm_homepage . visit
You can’t perform that action at this time.
0 commit comments