blob: 3c71a27ff82218589a6ed09814992fd845c26874 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'Work item', :js, feature_category: :team_planning do
let_it_be(:project) { create(:project, :public) }
let_it_be(:user) { create(:user) }
let_it_be(:work_item) { create(:work_item, project: project) }
context 'for signed in user' do
before do
project.add_developer(user)
sign_in(user)
visit project_work_items_path(project, work_items_path: work_item.id)
end
it_behaves_like 'work items status'
it_behaves_like 'work items assignees'
it_behaves_like 'work items labels'
it_behaves_like 'work items comments'
it_behaves_like 'work items description'
end
context 'for signed in owner' do
before do
project.add_owner(user)
sign_in(user)
visit project_work_items_path(project, work_items_path: work_item.id)
end
it_behaves_like 'work items invite members'
end
end
|