debian-mirror-gitlab/spec/requests/concerns/planning_hierarchy_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
612 B
Ruby
Raw Normal View History

2022-04-04 11:22:00 +05:30
# frozen_string_literal: true
require 'spec_helper'
2023-03-04 22:38:38 +05:30
RSpec.describe PlanningHierarchy, type: :request, feature_category: :projects do
2022-04-04 11:22:00 +05:30
let_it_be(:user) { create(:user) }
let_it_be(:group) { create(:group) }
let_it_be(:project) { create(:project, group: group) }
before do
project.add_maintainer(user)
sign_in(user)
end
describe 'GET #planning_hierarchy' do
it 'renders planning hierarchy' do
get project_planning_hierarchy_path(project)
expect(response).to have_gitlab_http_status(:ok)
expect(response.body).to match(/id="js-work-items-hierarchy"/)
end
end
end