diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-01 00:06:41 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-01 00:06:41 +0300 |
commit | 08f4ce10c04d705148a7e14556443b9e3aee6821 (patch) | |
tree | ba58b29874803db12ebec690fb4416b6208ee750 /spec/features/issues | |
parent | b4cdff15ca53312ccbbafe4effac85b1ee4420ae (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/issues')
-rw-r--r-- | spec/features/issues/issues_tabs_spec.rb | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/spec/features/issues/issues_tabs_spec.rb b/spec/features/issues/issues_tabs_spec.rb deleted file mode 100644 index 66d55dd9021..00000000000 --- a/spec/features/issues/issues_tabs_spec.rb +++ /dev/null @@ -1,56 +0,0 @@ -# frozen_string_literal: true - -require 'spec_helper' - -describe 'Issue page tabs', :js do - let(:user) { create(:user) } - let(:project) { create(:project, :public) } - let(:issue) { create(:issue, author: user, assignees: [user], project: project) } - - describe 'discussions tab counter' do - before do - stub_licensed_features(design_management: true) - stub_feature_flags(design_management_flag: true) - allow(Ability).to receive(:allowed?) { true } - end - - subject do - sign_in(user) - - visit project_issue_path(project, issue) - - wait_for_requests - - find('#discussion') - end - - context 'new issue' do - it 'displays count of 0' do - is_expected.to have_content('Discussion 0') - end - end - - context 'issue with 2 system notes and 1 discussion' do - let!(:discussion) { create(:discussion_note_on_issue, noteable: issue, project: project, note: "This is good") } - - before do - create(:system_note, noteable: issue, project: project, author: user, note: 'description updated') - create(:system_note, noteable: issue, project: project, author: user, note: 'description updated') - end - - it 'displays count of 1' do - is_expected.to have_content('Discussion 1') - end - - context 'with 1 reply' do - before do - create(:note, noteable: issue, in_reply_to: discussion, discussion_id: discussion.discussion_id, note: 'I also think this is good') - end - - it 'displays count of 2' do - is_expected.to have_content('Discussion 2') - end - end - end - end -end |