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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-08-17 22:04:08 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-08-17 22:39:33 +0300
commit5f6c6d6a0d8feee9b17d309e4da180dce7ca8ce0 (patch)
treedb6da2880941bf593dbb36dc11acb0f7efd8648f /spec/features/projects/issues
parent146e905995fad9753fe4e4afa72342532acb90b0 (diff)
Hide `Create new list button` on Issues and MRs pages
Diffstat (limited to 'spec/features/projects/issues')
-rw-r--r--spec/features/projects/issues/list_spec.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/spec/features/projects/issues/list_spec.rb b/spec/features/projects/issues/list_spec.rb
new file mode 100644
index 00000000000..3137af074ca
--- /dev/null
+++ b/spec/features/projects/issues/list_spec.rb
@@ -0,0 +1,20 @@
+require 'spec_helper'
+
+feature 'Issues List' do
+ let(:user) { create(:user) }
+ let(:project) { create(:empty_project) }
+
+ background do
+ project.team << [user, :developer]
+
+ login_as(user)
+ end
+
+ scenario 'user does not see create new list button' do
+ create(:issue, project: project)
+
+ visit namespace_project_issues_path(project.namespace, project)
+
+ expect(page).not_to have_selector('.js-new-board-list')
+ end
+end