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
Rewrite cuke
Oliver Günther5f26dc101fc5
diff --git a/modules/meeting/features/meetings_activity.feature b/modules/meeting/features/meetings_activity.featuredeleted file mode 100644index d7bf097a14d..00000000000--- a/modules/meeting/features/meetings_activity.feature+++ /dev/null@@ -1,71 +0,0 @@-#-- copyright-# OpenProject Meeting Plugin-#-# Copyright (C) 2011-2014 the OpenProject Foundation (OPF)-#-# This program is free software; you can redistribute it and/or-# modify it under the terms of the GNU General Public License version 3.-#-# 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 doc/COPYRIGHT.md for more details.-#++--Feature: Show meeting activity-- Background:- Given there is 1 project with the following:- | identifier | dingens |- | name | dingens |- And the project "dingens" uses the following modules:- | meetings |- | activity |- And there is 1 user with:- | login | alice |- | language | en |- | admin | true |- And there is a role "user"- And the role "user" may have the following rights:- | view_meetings |- | edit_meetings |- And the user "alice" is a "user" in the project "dingens"- And the user "alice" has the following preferences- | time_zone | UTC |- And there is 1 user with:- | login | bob |- And there is 1 meeting in project "dingens" created by "bob" with:- | title | Bobs Meeting |- | location | Room 2 |- | duration | 2.5 |- | start_time | 2011-02-10 11:00:00 |- And the meeting "Bobs Meeting" has 1 agenda with:- | locked | true |- | text | foobaz |- And the meeting "Bobs Meeting" has minutes with:- | text | barbaz |- And I am already logged in as "alice"-- Scenario: Navigate to the project's activity page and see the meeting activity- When I go to the meetings activity page for the project "dingens"- And I activate activity filter "Meetings"- When I click "Apply"- Then I should see "Meeting: Bobs Meeting (02/10/2011 11:00 AM-01:30 PM)" within "li.meeting a"- And I should see "Agenda: Bobs Meeting" within ".meeting-agenda"- And I should see "Minutes: Bobs Meeting" within ".meeting-minutes"-- Scenario: Change a metadata on a meeting and see the activity on the project's activity page- When I go to the edit page for the meeting called "Bobs Meeting"- And I fill in the following:- | meeting_location | Geheimer Ort! |- And I press "Save"- And I go to the meetings activity page for the project "dingens"- And I activate activity filter "Meetings"- When I click "Apply"- Then I should see "Meeting: Bobs Meeting (02/10/2011 11:00 AM-01:30 PM)" within ".meeting.me"diff --git a/modules/meeting/spec/features/meetings_activity_spec.rb b/modules/meeting/spec/features/meetings_activity_spec.rbnew file mode 100644index 00000000000..b7f11d58f5c--- /dev/null+++ b/modules/meeting/spec/features/meetings_activity_spec.rb@@ -0,0 +1,54 @@+#-- copyright+# OpenProject is a project management system.+# Copyright (C) 2012-2015 the OpenProject Foundation (OPF)+#+# 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 doc/COPYRIGHT.rdoc for more details.+#++++require 'spec_helper'++describe 'Meetings', type: :feature, js: true do+ let(:project) { FactoryBot.create :project, enabled_module_names: %w[meetings activity] }+ let(:user) { FactoryBot.create(:admin) }++ let!(:meeting) { FactoryBot.create :meeting, project: project, title: 'Awesome meeting!' }+ let!(:agenda) { FactoryBot.create :meeting_agenda, meeting: meeting, text: 'foo' }+ let!(:minutes) { FactoryBot.create :meeting_minutes, meeting: meeting, text: 'minutes' }++ before do+ login_as(user)+ end++ describe 'project activity' do+ it 'can show the meeting in the project activity' do+ visit project_activity_index_path(project)++ check 'Meetings'+ click_on 'Apply'++ expect(page).to have_selector('li.meeting', text: 'Awesome meeting!')+ expect(page).to have_selector('.meeting-agenda', text: 'Agenda: Awesome meeting!')+ end+ end+end