A platform for community discussion. Free, open, simple.
DEV: Add missing http mocks in specs (#39229)
Jarek Radosz2fd0c459add6
diff --git a/plugins/discourse-ai/spec/system/ai_bot/homepage_spec.rb b/plugins/discourse-ai/spec/system/ai_bot/homepage_spec.rbindex 97ac23d6659..e2d1784e4d2 100644--- a/plugins/discourse-ai/spec/system/ai_bot/homepage_spec.rb+++ b/plugins/discourse-ai/spec/system/ai_bot/homepage_spec.rb@@ -360,8 +360,10 @@ RSpec.describe "AI Bot - Homepage" doexpect(composer).to be_openedcomposer.fill_in(with: "Hello bot replying to you")- composer.submit- expect(page).to have_content("Hello bot replying to you")+ DiscourseAi::Completions::Llm.with_prepared_responses(["hello user"]) do+ composer.submit+ expect(page).to have_content("Hello bot replying to you")+ endendit "does not render custom sidebar on non-authored bot pms" dodiff --git a/spec/system/composer/prosemirror_autocomplete_spec.rb b/spec/system/composer/prosemirror_autocomplete_spec.rbindex e43b598d065..b98953cc4e5 100644--- a/spec/system/composer/prosemirror_autocomplete_spec.rb+++ b/spec/system/composer/prosemirror_autocomplete_spec.rb@@ -130,6 +130,11 @@ describe "Composer - ProseMirror - Autocomplete" doSiteSetting.external_system_avatars_url ="/letter_avatar_proxy/v4/letter/{first_letter}/{color}/{size}.png"SiteSetting.unicode_usernames = true++ stub_request(:get, %r{\Ahttps://avatars\.discourse-cdn\.com/}).to_return(+ status: 200,+ body: "",+ )endit "renders unicode mentions as nodes" do