From ad7d72cea7914094fb300ec3cc0a2a58cce8332f Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Fri, 22 Jul 2022 11:15:43 +0800 Subject: [PATCH] DEV: Remove reference to discourse chat in core (#17601) --- .../discourse/app/templates/components/sidebar/section.hbs | 3 +-- .../discourse/tests/acceptance/sidebar-plugin-api-test.js | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/app/assets/javascripts/discourse/app/templates/components/sidebar/section.hbs b/app/assets/javascripts/discourse/app/templates/components/sidebar/section.hbs index dd74d6ade4a..0cbbc30c759 100644 --- a/app/assets/javascripts/discourse/app/templates/components/sidebar/section.hbs +++ b/app/assets/javascripts/discourse/app/templates/components/sidebar/section.hbs @@ -51,8 +51,7 @@ @options={{hash icon=@headerActionsIcon placementStrategy="absolute"}} @content={{@headerActions}} @onChange={{action "handleMultipleHeaderActions"}} - @class="edit-channels-dropdown" - /> + @class="sidebar-section-header-dropdown" /> {{/if}} diff --git a/app/assets/javascripts/discourse/tests/acceptance/sidebar-plugin-api-test.js b/app/assets/javascripts/discourse/tests/acceptance/sidebar-plugin-api-test.js index aab97c2907c..029561c5fff 100644 --- a/app/assets/javascripts/discourse/tests/acceptance/sidebar-plugin-api-test.js +++ b/app/assets/javascripts/discourse/tests/acceptance/sidebar-plugin-api-test.js @@ -189,17 +189,17 @@ acceptance("Sidebar - section API", function (needs) { "displays header with correct text" ); await click( - ".sidebar-section-test-chat-channels .edit-channels-dropdown summary" + ".sidebar-section-test-chat-channels .sidebar-section-header-dropdown summary" ); assert.strictEqual( queryAll( - ".sidebar-section-test-chat-channels .edit-channels-dropdown .select-kit-collection li" + ".sidebar-section-test-chat-channels .sidebar-section-header-dropdown .select-kit-collection li" ).length, 2, "displays two actions" ); const actions = queryAll( - ".sidebar-section-test-chat-channels .edit-channels-dropdown .select-kit-collection li" + ".sidebar-section-test-chat-channels .sidebar-section-header-dropdown .select-kit-collection li" ); assert.strictEqual( actions[0].textContent.trim(),