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:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-06-09 12:10:18 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-06-09 12:10:18 +0300
commit82a546b14c7613fe355b3e68c425d5da8779641a (patch)
treeb7bce66a952a66375e0e4eeb8cbedc38c9479ebf /spec/features/boards
parenta5628d3b6d9b74f5902f790ceddd6374148c9d71 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/boards')
-rw-r--r--spec/features/boards/new_issue_spec.rb26
1 files changed, 26 insertions, 0 deletions
diff --git a/spec/features/boards/new_issue_spec.rb b/spec/features/boards/new_issue_spec.rb
index 129d03d17f3..d423377886a 100644
--- a/spec/features/boards/new_issue_spec.rb
+++ b/spec/features/boards/new_issue_spec.rb
@@ -120,6 +120,32 @@ RSpec.describe 'Issue Boards new issue', :js do
expect(page).to have_content 'Label 1'
end
end
+
+ it 'allows creating an issue in newly created list' do
+ click_button 'Create list'
+ wait_for_all_requests
+
+ click_button 'Select a label'
+ find('label', text: label.title).click
+ click_button 'Add to board'
+
+ wait_for_all_requests
+
+ page.within('.board:nth-child(2)') do
+ click_button('New issue')
+
+ page.within(first('.board-new-issue-form')) do
+ find('.form-control').set('new issue')
+ click_button 'Create issue'
+ end
+
+ wait_for_all_requests
+
+ page.within('.board-card') do
+ expect(page).to have_content 'new issue'
+ end
+ end
+ end
end
context 'unauthorized user' do