OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Add basic test setup
Benjamin Bädorfb27dffe753c9
diff --git a/frontend/src/app/features/work-packages/components/wp-buttons/wp-filter-button/wp-filter-button.html b/frontend/src/app/features/work-packages/components/wp-buttons/wp-filter-button/wp-filter-button.htmlindex 1745016037c..eda5cc011ea 100644--- a/frontend/src/app/features/work-packages/components/wp-buttons/wp-filter-button/wp-filter-button.html+++ b/frontend/src/app/features/work-packages/components/wp-buttons/wp-filter-button/wp-filter-button.html@@ -7,6 +7,7 @@[disabled]="disabled"(click)="performAction($event)"[ngClass]="{ '-active': isActive }"+ data-qa-selector="wp-filter-button"><op-icon icon-classes="{{ iconClass }} button--icon"></op-icon><span class="button--text">diff --git a/modules/team_planner/spec/features/support/team_planner_page.rb b/modules/team_planner/spec/features/support/team_planner_page.rbnew file mode 100644index 00000000000..a948bdc69fb--- /dev/null+++ b/modules/team_planner/spec/features/support/team_planner_page.rb@@ -0,0 +1,52 @@+#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See COPYRIGHT and LICENSE files for more details.+#++++require 'support/pages/page'+require_relative './team_planner_page'++module Pages+ class TeamPlanner < Page+ include ::Components::NgSelectAutocompleteHelpers++ def initialize(team_planner)+ @team_planner = team_planner+ end++ def team_planner(reload: false)+ @team_planner.reload if reload++ yield @team_planner if block_given?++ @team_planner+ end++ def expect_path+ expect(page).to have_current_path "/team_planner\/#{@team_planner.id}/"+ end+ end+enddiff --git a/modules/team_planner/spec/features/team_planner_spec.rb b/modules/team_planner/spec/features/team_planner_spec.rbnew file mode 100644index 00000000000..a742208624a--- /dev/null+++ b/modules/team_planner/spec/features/team_planner_spec.rb@@ -0,0 +1,49 @@+#-- encoding: UTF-8++#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) 2012-2021 the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See COPYRIGHT and LICENSE files for more details.+#++++require 'spec_helper'++describe 'Team planner', type: :feature, js: true do+ let(:project) { FactoryBot.create(:project, enabled_module_names: %w[team_planner]) }+ let(:user) do+ FactoryBot.create(:user,+ member_in_project: project,+ member_with_permissions: %i[view_work_packages view_calendar])+ end+ let(:filters) { ::Components::WorkPackages::Filters.new }++ before do+ login_as(user)+ end++ it 'Filters the filters correctly' do+ byebug+ end+end