Welcome to mirror list, hosted at ThFree Co, Russian Federation.

user_permissions_upload_spec.rb « design_management « issues « projects « features « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cfd8a4540ee3f26aeeadcb30a4ae7e9fc0964e1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe 'User design permissions', :js do
  include DesignManagementTestHelpers

  let(:project) { create(:project_empty_repo, :public) }
  let(:issue) { create(:issue, project: project) }

  before do
    enable_design_management

    visit project_issue_path(project, issue)
  end

  it 'user does not have permissions to upload design' do
    expect(page).not_to have_field('design_file')
  end
end