DEV: Combine S3 system spec helpers into one (#29580)

It's annoying to have to do both of these every
time you write an S3 system spec, let's just do them
in one call instead.
This commit is contained in:
Martin Brennan
2024-11-05 09:28:14 +10:00
committed by GitHub
parent 1b5a7be3d4
commit badca20749
3 changed files with 9 additions and 19 deletions

View File

@ -10,9 +10,7 @@ describe "Uploading files in the composer to S3", type: :system do
describe "direct S3 uploads" do
describe "single part uploads" do
it "uploads custom avatars to S3" do
skip_unless_s3_system_specs_enabled!
setup_s3_system_test
setup_or_skip_s3_system_test
sign_in(current_user)
visit "/my/preferences/account"
@ -37,9 +35,7 @@ describe "Uploading files in the composer to S3", type: :system do
describe "multipart uploads" do
it "uploads a file in the post composer" do
skip_unless_s3_system_specs_enabled!
setup_s3_system_test
setup_or_skip_s3_system_test
sign_in(current_user)
topic.open_new_topic