diff options
author | Regis Boudinot <boudinot.regis@yahoo.com> | 2017-08-07 23:56:16 +0000 |
---|---|---|
committer | Jacob Schatz <jschatz@gitlab.com> | 2017-08-07 23:56:16 +0000 |
commit | f59bdbf0f12b2f370a6931753d8ee14ba92d66ea (patch) | |
tree | 24da1adbf5c2c4a5ee0e6d22b96b3255a7159641 /spec/features/issues_spec.rb | |
parent | 1bed998ee91231bafab74a5b423d9ef1d966989d (diff) | |
download | gitlab-ce-f59bdbf0f12b2f370a6931753d8ee14ba92d66ea.tar.gz |
33874 confidential issue redesign
Diffstat (limited to 'spec/features/issues_spec.rb')
-rw-r--r-- | spec/features/issues_spec.rb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/spec/features/issues_spec.rb b/spec/features/issues_spec.rb index 489baa4291f..a5bb642221c 100644 --- a/spec/features/issues_spec.rb +++ b/spec/features/issues_spec.rb @@ -706,4 +706,30 @@ describe 'Issues' do expect(page).to have_text("updated title") end end + + describe 'confidential issue#show', js: true do + it 'shows confidential sibebar information as confidential and can be turned off' do + issue = create(:issue, :confidential, project: project) + + visit project_issue_path(project, issue) + + expect(page).to have_css('.confidential-issue-warning') + expect(page).to have_css('.is-confidential') + expect(page).not_to have_css('.is-not-confidential') + + find('.confidential-edit').click + expect(page).to have_css('.confidential-warning-message') + + within('.confidential-warning-message') do + find('.btn-close').click + end + + wait_for_requests + + visit project_issue_path(project, issue) + + expect(page).not_to have_css('.is-confidential') + expect(page).to have_css('.is-not-confidential') + end + end end |