diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-19 23:22:24 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-19 23:22:24 +0300 |
commit | fcafb1abc3cc971ff28b8c4c5a959b191dbfc791 (patch) | |
tree | a70b154082f75c30acb1ee930dfec638e44c2050 /spec | |
parent | 419c53ec62de6e97a517abd5fdd4cbde3a942a34 (diff) |
Add latest changes from gitlab-org/gitlab@16-5-stable-ee
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/projects/issues/email_participants_spec.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/spec/features/projects/issues/email_participants_spec.rb b/spec/features/projects/issues/email_participants_spec.rb index a902c8294d7..215c45351c1 100644 --- a/spec/features/projects/issues/email_participants_spec.rb +++ b/spec/features/projects/issues/email_participants_spec.rb @@ -35,10 +35,13 @@ RSpec.describe 'viewing an issue', :js, feature_category: :service_desk do end context 'when issue is confidential' do + let!(:confidential_issue) { create(:issue, project: project, confidential: true) } + let!(:confidential_note) { create(:note_on_issue, project: project, noteable: confidential_issue) } + let!(:confidential_participants) { create_list(:issue_email_participant, 4, issue: confidential_issue) } + before do - issue.update!(confidential: true) sign_in(user) - visit project_issue_path(project, issue) + visit project_issue_path(project, confidential_issue) end it_behaves_like 'email participants warning in all editors' |