Fix spec setup

pull/9893/head
Benjamin Bädorf 3 years ago
parent 964629b93d
commit 572405dc53
No known key found for this signature in database
GPG Key ID: 069CA2D117AB5CCF
  1. 8
      modules/team_planner/spec/features/team_planner_spec.rb

@ -32,13 +32,11 @@ require 'spec_helper'
describe 'Team planner', type: :feature, js: true do
let(:project) do
FactoryBot.create(:project, enabled_module_names: %w[team_planner_view])
FactoryBot.create(:project, enabled_module_names: %w[work_package_tracking team_planner_view])
end
let(:user) do
FactoryBot.create(:admin,
member_in_project: project,
member_with_permissions: %i[view_team_planner manage_team_planner])
FactoryBot.create(:admin)
end
let(:filters) { ::Components::WorkPackages::Filters.new }
@ -47,7 +45,7 @@ describe 'Team planner', type: :feature, js: true do
login_as(user)
end
it 'Opens the page' do
it 'Filters the filters correctly' do
visit project_path(project)
within '#main-menu' do

Loading…
Cancel
Save