Skip to content

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

FIX: test for composer redesign beta phase (#44292)

chapoi68ad0815c020
diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml
index 9dc58dd302e..f1dba55b050 100644
--- a/config/locales/client.en.yml
+++ b/config/locales/client.en.yml
@@ -3677,8 +3677,7 @@ en:
draft_saved: "Draft saved!"
users_placeholder: "Add users or groups"
- title_placeholder: "What is this discussion about in one brief sentence?"
- title_placeholder_redesign: "Title"
+ title_placeholder: "Title"
title_or_link_placeholder: "Type title, or paste a link here"
edit_reason_placeholder: "Why are you editing?"
topic_featured_link_placeholder: "Enter link shown with title."
diff --git a/frontend/discourse/app/models/composer.js b/frontend/discourse/app/models/composer.js
index 23addf1f261..ff564cc0d82 100644
--- a/frontend/discourse/app/models/composer.js
+++ b/frontend/discourse/app/models/composer.js
@@ -548,10 +548,7 @@ export default class Composer extends RestModel {
if (this.canEditTopicFeaturedLink) {
return "composer.title_or_link_placeholder";
}
-
- return this.siteSettings.enable_composer_redesign
- ? "composer.title_placeholder_redesign"
- : "composer.title_placeholder";
+ return "composer.title_placeholder";
}
@computed("category.topic_title_placeholder")
diff --git a/spec/system/composer_spec.rb b/spec/system/composer_spec.rb
index 80861997922..7c810a9a785 100644
--- a/spec/system/composer_spec.rb
+++ b/spec/system/composer_spec.rb
@@ -75,6 +75,7 @@ describe "Composer" do
end
it "focuses the reply button when tabbing out of both editor modes" do
+ SiteSetting.enable_composer_redesign = false
page.visit "/new-topic"
expect(composer).to be_opened
composer.focus