kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
113 lines
4.8 KiB
113 lines
4.8 KiB
11 years ago
|
#-- copyright
|
||
11 years ago
|
# OpenProject Meeting Plugin
|
||
|
#
|
||
|
# Copyright (C) 2011-2014 the OpenProject Foundation (OPF)
|
||
11 years ago
|
#
|
||
|
# This program is free software; you can redistribute it and/or
|
||
|
# modify it under the terms of the GNU General Public License version 3.
|
||
|
#
|
||
11 years ago
|
# 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.
|
||
|
#
|
||
11 years ago
|
# 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.
|
||
11 years ago
|
#++
|
||
|
|
||
14 years ago
|
Feature: Copy meetings
|
||
12 years ago
|
|
||
14 years ago
|
Background:
|
||
|
Given there is 1 project with the following:
|
||
|
| identifier | dingens |
|
||
|
| name | dingens |
|
||
|
And the project "dingens" uses the following modules:
|
||
|
| meetings |
|
||
|
And there is 1 user with:
|
||
14 years ago
|
| login | alice |
|
||
|
| language | en |
|
||
|
| firstname | Alice |
|
||
|
| lastname | Alice |
|
||
12 years ago
|
And the user "alice" has the following preferences
|
||
|
| time_zone | UTC |
|
||
14 years ago
|
And there is 1 user with:
|
||
14 years ago
|
| login | bob |
|
||
14 years ago
|
And there is 1 user with:
|
||
14 years ago
|
| login | charly |
|
||
14 years ago
|
And there is 1 user with:
|
||
14 years ago
|
| login | dave |
|
||
14 years ago
|
And there is a role "user"
|
||
|
And the user "alice" is a "user" in the project "dingens"
|
||
|
And there is 1 meeting in project "dingens" created by "alice" with:
|
||
12 years ago
|
| title | Alices Meeting |
|
||
|
| location | CZI |
|
||
|
| duration | 1.5 |
|
||
|
| start_time | 2013-03-27 18:55:00 |
|
||
12 years ago
|
|
||
14 years ago
|
Scenario: Navigate to a meeting page with permission to create meetings
|
||
|
Given the role "user" may have the following rights:
|
||
|
| view_meetings |
|
||
|
| create_meetings |
|
||
12 years ago
|
When I am already logged in as "alice"
|
||
14 years ago
|
And I go to the Meetings page for the project called "dingens"
|
||
|
And I click on "Alices Meeting"
|
||
9 years ago
|
Then I should see "Copy" within ".meeting--main-toolbar"
|
||
12 years ago
|
|
||
14 years ago
|
Scenario: Navigate to a meeting copy page
|
||
|
Given the role "user" may have the following rights:
|
||
|
| view_meetings |
|
||
|
| create_meetings |
|
||
12 years ago
|
When I am already logged in as "alice"
|
||
14 years ago
|
And I go to the Meetings page for the project called "dingens"
|
||
|
And I click on "Alices Meeting"
|
||
|
And I click on "Copy"
|
||
|
Then the "meeting[title]" field should contain "Alices Meeting"
|
||
|
And the "meeting[location]" field should contain "CZI"
|
||
|
And the "meeting[duration]" field should contain "1.5"
|
||
12 years ago
|
And the "meeting[start_date]" field should contain "2013-03-27"
|
||
10 years ago
|
And the "meeting[start_time_hour]" field should contain "18:55"
|
||
14 years ago
|
#And no participant should be selected as attendee
|
||
14 years ago
|
#And only invited participants should be selected as invitees
|
||
12 years ago
|
|
||
14 years ago
|
Scenario: Navigate to a meeting copy page to make sure the author is selected as invited but not as attendee
|
||
|
Given the role "user" may have the following rights:
|
||
|
| view_meetings |
|
||
|
| create_meetings |
|
||
|
And "alice" attended the Meeting "Alices Meeting"
|
||
12 years ago
|
When I am already logged in as "alice"
|
||
14 years ago
|
And I go to the Meetings page for the project called "dingens"
|
||
|
And I click on "Alices Meeting"
|
||
|
And I click on "Copy"
|
||
|
Then the "meeting[participants_attributes][][invited]" checkbox should be checked
|
||
|
And the "meeting[participants_attributes][][attended]" checkbox should not be checked
|
||
12 years ago
|
|
||
14 years ago
|
Scenario: Copy a meeting and make sure the author isn''t copied over
|
||
|
Given the role "user" may have the following rights:
|
||
|
| view_meetings |
|
||
|
| create_meetings |
|
||
12 years ago
|
When I am already logged in as "alice"
|
||
14 years ago
|
And I go to the Meetings page for the project called "dingens"
|
||
|
And I click on "Alices Meeting"
|
||
|
And I click on "Copy"
|
||
|
And I click on "Create"
|
||
|
Then I should not see "Alice Alice; Alice Alice"
|
||
|
And I should see "Alice Alice"
|
||
12 years ago
|
|
||
14 years ago
|
Scenario: Copy a meeting and make sure the agenda is copied over
|
||
14 years ago
|
Given the role "user" may have the following rights:
|
||
|
| view_meetings |
|
||
|
| create_meetings |
|
||
|
And the meeting "Alices Meeting" has 1 agenda with:
|
||
|
| text | "blubber" |
|
||
12 years ago
|
When I am already logged in as "alice"
|
||
14 years ago
|
And I go to the Meetings page for the project called "dingens"
|
||
|
And I click on "Alices Meeting"
|
||
12 years ago
|
And I follow "Copy"
|
||
|
And I press "Create"
|
||
|
And I follow "Agenda"
|
||
|
And I follow "History" within ".meeting_agenda"
|
||
13 years ago
|
Then I should see "Copied from Meeting #"
|