-
+
}
diff --git a/assets/stylesheets/modules/ai-bot/common/bot-replies.scss b/assets/stylesheets/modules/ai-bot/common/bot-replies.scss
index 7c36955d..0e9f0e39 100644
--- a/assets/stylesheets/modules/ai-bot/common/bot-replies.scss
+++ b/assets/stylesheets/modules/ai-bot/common/bot-replies.scss
@@ -9,12 +9,15 @@ nav.post-controls .actions button.cancel-streaming {
display: none;
}
}
- .gpt-persona {
- margin-bottom: 5px;
- margin-top: -10px;
+ .persona-llm-selector {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+
.select-kit.single-select.dropdown-select-box ul.select-kit-collection {
max-height: 200px;
}
+ margin-bottom: 1em;
}
}
diff --git a/spec/system/ai_bot/ai_bot_helper_spec.rb b/spec/system/ai_bot/ai_bot_helper_spec.rb
index 630fa56d..344e2a11 100644
--- a/spec/system/ai_bot/ai_bot_helper_spec.rb
+++ b/spec/system/ai_bot/ai_bot_helper_spec.rb
@@ -23,9 +23,6 @@ RSpec.describe "AI chat channel summarization", type: :system, js: true do
expect(page).to have_selector(".ai-bot-button")
find(".ai-bot-button").click
- expect(page).to have_selector(".ai-bot-available-bot-content")
- find("button.ai-bot-available-bot-content:first-child").click
-
# composer is open
expect(page).to have_selector(".d-editor-container")
diff --git a/spec/system/ai_bot/persona_spec.rb b/spec/system/ai_bot/persona_spec.rb
index bbaabee1..5f785f75 100644
--- a/spec/system/ai_bot/persona_spec.rb
+++ b/spec/system/ai_bot/persona_spec.rb
@@ -13,7 +13,8 @@ RSpec.describe "AI personas", type: :system, js: true do
it "remembers the last selected persona" do
visit "/"
find(".d-header .ai-bot-button").click()
- persona_selector = PageObjects::Components::SelectKit.new(".persona-selector__dropdown")
+ persona_selector =
+ PageObjects::Components::SelectKit.new(".persona-llm-selector__persona-dropdown")
id = DiscourseAi::AiBot::Personas::Persona.all(user: admin).first.id
@@ -24,7 +25,8 @@ RSpec.describe "AI personas", type: :system, js: true do
visit "/"
find(".d-header .ai-bot-button").click()
- persona_selector = PageObjects::Components::SelectKit.new(".persona-selector__dropdown")
+ persona_selector =
+ PageObjects::Components::SelectKit.new(".persona-llm-selector__persona-dropdown")
persona_selector.expand
expect(persona_selector).to have_selected_value(-2)
end