A platform for community discussion. Free, open, simple.
DEV: Remove repeated `sign_in` calls (#27521)
Jarek Radosz9568a7e542ee
diff --git a/spec/system/composer_uploads_spec.rb b/spec/system/composer_uploads_spec.rbindex 8a1914e97e1..2b805aa96f3 100644--- a/spec/system/composer_uploads_spec.rb+++ b/spec/system/composer_uploads_spec.rb@@ -11,8 +11,6 @@ describe "Uploading files in the composer", type: :system dobefore { sign_in(current_user) }it "uploads multiple files at once" do- sign_in(current_user)-visit "/new-topic"expect(composer).to be_opened@@ -25,8 +23,6 @@ describe "Uploading files in the composer", type: :system doendit "allows cancelling uploads" do- sign_in(current_user)-visit "/new-topic"expect(composer).to be_opened@@ -52,8 +48,6 @@ describe "Uploading files in the composer", type: :system do## c.f. https://groups.google.com/g/chromedriver-users/c/1SMbByMfO2Uxit "generates a topic preview thumbnail from the video" do- sign_in(current_user)-visit "/new-topic"expect(composer).to be_openedtopic.fill_in_composer_title("Video upload test")@@ -72,8 +66,6 @@ describe "Uploading files in the composer", type: :system doendit "generates a thumbnail from the video" do- sign_in(current_user)-visit "/new-topic"expect(composer).to be_openedtopic.fill_in_composer_title("Video upload test")@@ -102,7 +94,6 @@ describe "Uploading files in the composer", type: :system doendit "shows video player in composer" do- sign_in(current_user)SiteSetting.enable_diffhtml_preview = truevisit "/new-topic"