Skip to content

A platform for community discussion. Free, open, simple.

DEV: Restore ai_composer_helper spec (#39513)

Jarek Radosze6c263ce0284
diff --git a/plugins/discourse-ai/spec/system/ai_helper/ai_composer_helper_spec.rb b/plugins/discourse-ai/spec/system/ai_helper/ai_composer_helper_spec.rb
index 6dd3a01a24b..2f2a94c236a 100644
--- a/plugins/discourse-ai/spec/system/ai_helper/ai_composer_helper_spec.rb
+++ b/plugins/discourse-ai/spec/system/ai_helper/ai_composer_helper_spec.rb
@@ -86,27 +86,7 @@ RSpec.describe "AI Composer helper" do
expect(ai_helper_menu).to have_custom_prompt_button_enabled
end
- xit "replaces the composed message with AI generated content" do
- # TODO: @keegan - this is a flake
- # Failure/Error: super
-
- # Playwright::TimeoutError:
- # Timeout 11000ms exceeded.
- # Call log:
- # - attempting click action
- # - 2 × waiting for element to be visible, enabled and stable
- # - - element is not enabled
- # - - retrying click action
- # - - waiting 20ms
- # - 2 × waiting for element to be visible, enabled and stable
- # - - element is not enabled
- # - - retrying click action
- # - - waiting 100ms
- # - 21 × waiting for element to be visible, enabled and stable
- # - - element is not enabled
- # - - retrying click action
- # - - waiting 500ms
-
+ it "replaces the composed message with AI generated content" do
trigger_composer_helper(input)
ai_helper_menu.fill_custom_prompt(custom_prompt_input)