2019-07-25 05:24:42 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-03-30 10:39:02 +00:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-16 18:09:01 +00:00
|
|
|
RSpec.describe 'Groups > Labels > User sees links to issuables' do
|
2020-02-26 18:09:24 +00:00
|
|
|
let_it_be(:group) { create(:group, :public) }
|
2017-03-30 10:39:02 +00:00
|
|
|
|
|
|
|
before do
|
|
|
|
create(:group_label, group: group, title: 'bug')
|
|
|
|
visit group_labels_path(group)
|
|
|
|
end
|
|
|
|
|
2018-07-05 06:32:05 +00:00
|
|
|
it 'shows links to MRs and issues' do
|
2019-07-30 12:29:17 +00:00
|
|
|
page.within('.labels-container') do
|
|
|
|
expect(page).to have_link('Merge requests')
|
|
|
|
expect(page).to have_link('Issues')
|
|
|
|
end
|
2017-03-30 10:39:02 +00:00
|
|
|
end
|
|
|
|
end
|