diff options
author | Brandon Labuschagne <blabuschagne@gitlab.com> | 2018-12-31 16:58:20 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2018-12-31 16:58:20 +0300 |
commit | 78029952cc69dfa4cf7c090262c319efdcd4f230 (patch) | |
tree | b3375a8ac4e37bc3f06c6440c20f52245393df8b /spec/features | |
parent | ca14b70d5201852751d79d6a0827b81689fff5be (diff) |
Resolve "Status emoji should not update awards section on issue page"
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/profiles/user_edit_profile_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/features/profiles/user_edit_profile_spec.rb b/spec/features/profiles/user_edit_profile_spec.rb index 5e0434c1c2c..f45bcabd196 100644 --- a/spec/features/profiles/user_edit_profile_spec.rb +++ b/spec/features/profiles/user_edit_profile_spec.rb @@ -147,6 +147,9 @@ describe 'User edit profile' do end context 'user menu' do + let(:issue) { create(:issue, project: project)} + let(:project) { create(:project) } + def open_user_status_modal find('.header-user-dropdown-toggle').click @@ -205,6 +208,17 @@ describe 'User edit profile' do end end + it 'does not update the awards panel emoji' do + project.add_maintainer(user) + visit(project_issue_path(project, issue)) + + emoji = 'biohazard' + open_user_status_modal + select_emoji(emoji, true) + + expect(page.all('.award-control .js-counter')).to all(have_content('0')) + end + it 'adds message to user status' do message = 'I have something to say' open_user_status_modal |