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:
authorConstance Okoghenun <cokoghenun@gitlab.com>2018-08-01 19:17:56 +0300
committerPhil Hughes <me@iamphill.com>2018-08-01 19:17:56 +0300
commit4d4d0a7e252bc2d3758373a7bee54e88c1bb232d (patch)
tree58b2772adbe9841dfe9ec4b99a7d03f2619022a2 /spec/features
parent5815b830c86960c6c510bcdac69f9345351d494a (diff)
Resolve "List of projects not loading when trying to create an issue from a board (TypeError)"
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/groups/board_spec.rb35
1 files changed, 35 insertions, 0 deletions
diff --git a/spec/features/groups/board_spec.rb b/spec/features/groups/board_spec.rb
new file mode 100644
index 00000000000..86a4a016f3d
--- /dev/null
+++ b/spec/features/groups/board_spec.rb
@@ -0,0 +1,35 @@
+require 'rails_helper'
+
+describe 'Group Boards' do
+ let(:group) { create(:group) }
+ let!(:project) { create(:project_empty_repo, group: group) }
+ let(:user) { create(:group_member, :maintainer, user: create(:user), group: group ).user }
+
+ before do
+ sign_in(user)
+ end
+
+ context 'Creates a an issue', :js do
+ before do
+ visit group_boards_path(group)
+ end
+
+ it 'Adds an issue to the backlog' do
+ page.within(find('.board', match: :first)) do
+ issue_title = 'New Issue'
+ find(:css, '.issue-count-badge-add-button').click
+ expect(find('.board-new-issue-form')).to be_visible
+
+ fill_in 'issue_title', with: issue_title
+ find('.dropdown-menu-toggle').click
+
+ wait_for_requests
+
+ click_link(project.name)
+ click_button 'Submit issue'
+
+ expect(page).to have_content(issue_title)
+ end
+ end
+ end
+end