summaryrefslogtreecommitdiff
path: root/spec/features
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-08-30 12:40:01 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-08-30 12:40:01 +0000
commitf19a0fa10a0024fab5ef3c556612944f2a62c298 (patch)
treeef5c359820d2409cf07c0610122299d314ec4743 /spec/features
parenteba52140851d2fb08665119c0a3997d0612ccb88 (diff)
downloadgitlab-ce-f19a0fa10a0024fab5ef3c556612944f2a62c298.tar.gz
Add latest changes from gitlab-org/security/gitlab@14-2-stable-ee
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/file_uploads/graphql_add_design_spec.rb12
1 files changed, 11 insertions, 1 deletions
diff --git a/spec/features/file_uploads/graphql_add_design_spec.rb b/spec/features/file_uploads/graphql_add_design_spec.rb
index f805ea86b4c..17fbf5f6838 100644
--- a/spec/features/file_uploads/graphql_add_design_spec.rb
+++ b/spec/features/file_uploads/graphql_add_design_spec.rb
@@ -19,8 +19,18 @@ RSpec.describe 'Upload a design through graphQL', :js do
let_it_be(:user) { create(:user, :admin) }
let_it_be(:personal_access_token) { create(:personal_access_token, user: user) }
let_it_be(:design) { create(:design) }
- let_it_be(:operations) { { "operationName": "uploadDesign", "variables": { "files": [], "projectPath": design.project.full_path, "iid": design.issue.iid }, "query": query }.to_json }
let_it_be(:map) { { "1": ["variables.files.0"] }.to_json }
+ let_it_be(:operations) do
+ {
+ "operationName": "uploadDesign",
+ "variables": {
+ "files": [nil],
+ "projectPath": design.project.full_path,
+ "iid": design.issue.iid
+ },
+ "query": query
+ }.to_json
+ end
let(:url) { capybara_url("/api/graphql?private_token=#{personal_access_token.token}") }
let(:file) { fixture_file_upload('spec/fixtures/dk.png') }