debian-mirror-gitlab/spec/features/groups/board_spec.rb

38 lines
928 B
Ruby
Raw Normal View History

2019-10-12 21:52:04 +05:30
# frozen_string_literal: true
2019-12-04 20:38:33 +05:30
require 'spec_helper'
2018-11-18 11:00:15 +05:30
2020-06-23 00:09:42 +05:30
RSpec.describe 'Group Boards' do
2018-11-18 11:00:15 +05:30
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