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

Commit 3a314bc

Browse files
committed
ensure we don't target cancel
1 parent e9679a3 commit 3a314bc

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

assets/javascripts/discourse/templates/discourse-ai-bot-conversations.gjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export default RouteTemplate(
9090
<DButton
9191
@icon="xmark"
9292
@action={{fn @controller.cancelUpload upload}}
93-
class="btn-flat ai-bot-upload__remove"
93+
class="btn-flat ai-bot-upload__cancel"
9494
/>
9595
</div>
9696
{{/each}}

spec/system/ai_bot/homepage_spec.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,15 +137,14 @@
137137
expect(page).to have_no_css(".ai-bot-upload")
138138
end
139139

140-
it "allows removing an upload before submission", video: true, trace: true do
140+
it "allows removing an upload before submission" do
141141
ai_pm_homepage.visit
142142
expect(ai_pm_homepage).to have_homepage
143143

144144
file_path = file_from_fixtures("logo.png", "images").path
145145
attach_file([file_path]) { find(".ai-bot-upload-btn", visible: true).click }
146146
expect(page).to have_css(".ai-bot-upload", count: 1)
147147

148-
# TODO: for some reason this line fails in playwright
149148
find(".ai-bot-upload__remove").click
150149

151150
expect(page).to have_no_css(".ai-bot-upload")

0 commit comments

Comments
 (0)