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 | 28 |
1 files changed, 8 insertions, 20 deletions
diff --git a/spec/features/projects/work_items/work_item_spec.rb b/spec/features/projects/work_items/work_item_spec.rb index a1f5466f5bf..5210d67b78c 100644 --- a/spec/features/projects/work_items/work_item_spec.rb +++ b/spec/features/projects/work_items/work_item_spec.rb @@ -12,7 +12,8 @@ RSpec.describe 'Work item', :js, feature_category: :team_planning do let_it_be(:milestone) { create(:milestone, project: project) } let_it_be(:milestones) { create_list(:milestone, 25, project: project) } let_it_be(:note) { create(:note, noteable: work_item, project: work_item.project) } - let(:work_items_path) { project_work_items_path(project, work_items_path: work_item.iid) } + let(:work_items_path) { project_work_item_path(project, work_item.iid) } + let_it_be(:label) { create(:label, project: work_item.project, title: "testing-label") } context 'for signed in user' do before do @@ -58,25 +59,6 @@ RSpec.describe 'Work item', :js, feature_category: :team_planning do expect(work_item.reload.assignees).to include(user2) end - it 'updates the assignee in real-time' do - Capybara::Session.new(:other_session) - - using_session :other_session do - visit work_items_path - expect(work_item.reload.assignees).not_to include(user) - end - - find('[data-testid="work-item-assignees-input"]').hover - find('[data-testid="assign-self"]').click - wait_for_requests - - expect(work_item.reload.assignees).to include(user) - - using_session :other_session do - expect(work_item.reload.assignees).to include(user) - end - end - it_behaves_like 'work items title' it_behaves_like 'work items toggle status button' it_behaves_like 'work items assignees' @@ -134,5 +116,11 @@ RSpec.describe 'Work item', :js, feature_category: :team_planning do expect(page).to have_field(type: 'text', disabled: true) end end + + it 'labels input field is disabled' do + within('[data-testid="work-item-labels-input"]') do + expect(page).to have_field(type: 'text', disabled: true) + end + end end end |