diff options
Diffstat (limited to 'spec/features/projects/work_items/work_item_spec.rb')
-rw-r--r-- | spec/features/projects/work_items/work_item_spec.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/features/projects/work_items/work_item_spec.rb b/spec/features/projects/work_items/work_item_spec.rb index d202f6ad500..b706a624fc5 100644 --- a/spec/features/projects/work_items/work_item_spec.rb +++ b/spec/features/projects/work_items/work_item_spec.rb @@ -41,6 +41,8 @@ RSpec.describe 'Work item', :js, feature_category: :team_planning do it_behaves_like 'work items description' it_behaves_like 'work items milestone' it_behaves_like 'work items notifications' + it_behaves_like 'work items todos' + it_behaves_like 'work items award emoji' end context 'for signed in owner' do @@ -75,5 +77,16 @@ RSpec.describe 'Work item', :js, feature_category: :team_planning do it 'actions dropdown is not displayed' do expect(page).not_to have_selector('[data-testid="work-item-actions-dropdown"]') end + + it 'todos action is not displayed' do + expect(page).not_to have_selector('[data-testid="work-item-todos-action"]') + end + + it 'award button is disabled and add reaction is not displayed' do + within('[data-testid="work-item-award-list"]') do + expect(page).not_to have_selector('[data-testid="emoji-picker"]') + expect(page).to have_selector('[data-testid="award-button"].disabled') + end + end end end |