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

Commit 69290e0

Browse files
committed
update tests
1 parent 508a61a commit 69290e0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

assets/javascripts/discourse/services/ai-conversations-sidebar-manager.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,9 @@ export default class AiConversationsSidebarManager extends Service {
224224
if (diffDays <= 1) {
225225
dateGroup = "today";
226226
} else if (diffDays <= 7) {
227-
dateGroup = "last_7_days";
227+
dateGroup = "last-7-days";
228228
} else if (diffDays <= 30) {
229-
dateGroup = "last_30_days";
229+
dateGroup = "last-30-days";
230230
} else {
231231
const d = new Date(postedAtMs);
232232
const key = `${d.getFullYear()}-${d.getMonth()}`;
@@ -240,10 +240,10 @@ export default class AiConversationsSidebarManager extends Service {
240240
case "today":
241241
title = i18n("discourse_ai.ai_bot.conversations.today");
242242
break;
243-
case "last_7_days":
243+
case "last-7-days":
244244
title = i18n("discourse_ai.ai_bot.conversations.last_7_days");
245245
break;
246-
case "last_30_days":
246+
case "last-30-days":
247247
title = i18n("discourse_ai.ai_bot.conversations.last_30_days");
248248
break;
249249
default:

spec/system/ai_bot/homepage_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@
250250
header.click_bot_button
251251

252252
expect(ai_pm_homepage).to have_homepage
253-
expect(sidebar).to have_section("Apr 2024")
253+
expect(sidebar).to have_section("2024-3")
254254
end
255255

256256
it "navigates to the bot conversation when clicked" do

0 commit comments

Comments
 (0)