summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorFelipe Artur <felipefac@gmail.com>2018-04-18 11:23:00 -0300
committerFelipe Artur <felipefac@gmail.com>2018-04-19 12:30:57 -0300
commit3854d28713ca4cc20063c8f38a1599c53a171de7 (patch)
tree01b8ccb323f5447b54d35c13c27f6af9ceb544ac /spec
parentd8dd75ca775f66fd756e43ddd73ac75d39fc3e64 (diff)
downloadgitlab-ce-3854d28713ca4cc20063c8f38a1599c53a171de7.tar.gz
Fix issues without links when added from boards new issue modal
Diffstat (limited to 'spec')
-rw-r--r--spec/features/boards/new_issue_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/features/boards/new_issue_spec.rb b/spec/features/boards/new_issue_spec.rb
index 6769acb7c9c..e880f0096c1 100644
--- a/spec/features/boards/new_issue_spec.rb
+++ b/spec/features/boards/new_issue_spec.rb
@@ -63,6 +63,13 @@ describe 'Issue Boards new issue', :js do
page.within(first('.board .issue-count-badge-count')) do
expect(page).to have_content('1')
end
+
+ page.within(first('.card')) do
+ issue = project.issues.find_by_title('bug')
+
+ expect(page).to have_content(issue.to_reference)
+ expect(page).to have_link(issue.title, href: issue_path(issue))
+ end
end
it 'shows sidebar when creating new issue' do