diff options
author | Phil Hughes <me@iamphill.com> | 2017-09-27 16:22:12 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-09-27 17:06:24 +0100 |
commit | 05844d8b471b98c6b3251006aebfc78b97d88ac6 (patch) | |
tree | 1995c5b93710725dba9fd9d882aaaa239334cfa6 /spec/features/issues_spec.rb | |
parent | aaf435d16435bf3fbcfc2ab80071485ddb6bcf01 (diff) | |
download | gitlab-ce-05844d8b471b98c6b3251006aebfc78b97d88ac6.tar.gz |
Fixed breadcrumb title not linking
This fixes the breadcrumb titles not having links. This was a regression
in the updated breadcrumbs introduced in 10.0.
This introduces the link for all pages rather than selectively doing it.
This will cover issues, merge requests, pipelines, jobs etc.
Closes #38059
Diffstat (limited to 'spec/features/issues_spec.rb')
-rw-r--r-- | spec/features/issues_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/features/issues_spec.rb b/spec/features/issues_spec.rb index fb763c93c66..b4222edbcd0 100644 --- a/spec/features/issues_spec.rb +++ b/spec/features/issues_spec.rb @@ -131,6 +131,14 @@ describe 'Issues' do end describe 'Issue info' do + it 'links to current issue in breadcrubs' do + issue = create(:issue, project: project) + + visit project_issue_path(project, issue) + + expect(find('.breadcrumbs-sub-title a')[:href]).to end_with(issue_path(issue)) + end + it 'excludes award_emoji from comment count' do issue = create(:issue, author: user, assignees: [user], project: project, title: 'foobar') create(:award_emoji, awardable: issue) |