OpenProject is the leading open source project management software.
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.
 
 
 
 
 
 
openproject/features/meetings_show.feature

145 lines
5.9 KiB

#-- 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 meetings
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:
| login | alice |
| language | en |
And there is 1 user with:
| login | bob |
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 "bob" with:
| title | Bobs Meeting |
Given I am already logged in as "alice"
Scenario: Navigate to a meeting page
Given the role "user" may have the following rights:
| view_meetings |
When I go to the Meetings page for the project called "dingens"
And I follow "Bobs Meeting"
Then I should be on the show page for the meeting called "Bobs Meeting"
Scenario: Navigate to a meeting page with an open agenda
Given the role "user" may have the following rights:
| view_meetings |
When I go to the show page for the meeting called "Bobs Meeting"
Then I should see "Agenda" within ".meeting_agenda"
And I should see "No data to display" within ".meeting_agenda"
Scenario: Navigate to a meeting page with a closed agenda
Given the role "user" may have the following rights:
| view_meetings |
And the meeting "Bobs Meeting" has 1 agenda with:
| locked | true |
When I go to the show page for the meeting called "Bobs Meeting"
Then I should see "Minutes" within ".meeting_minutes"
And I should see "No data to display" within ".meeting_minutes"
@javascript
Scenario: Navigate to a meeting page with an open agenda and the permission to edit the agenda
Given the role "user" may have the following rights:
| view_meetings |
| create_meeting_agendas |
When I go to the show page for the meeting called "Bobs Meeting"
Then I should see "Agenda" within ".meeting_agenda"
And I should not see "No data to display" within "#meeting_agenda_text"
And there should be a text edit toolbar for the "#meeting_agenda_text" field
@javascript
Scenario: Navigate to a meeting page with a closed agenda and the permission to edit the minutes
Given the role "user" may have the following rights:
| view_meetings |
| create_meeting_minutes |
And the meeting "Bobs Meeting" has 1 agenda with:
| locked | true |
When I go to the show page of the meeting called "Bobs Meeting"
Then I should see "Minutes" within ".meeting_minutes"
And I should not see "No data to display" within "#meeting_minutes_text"
And there should be a text edit toolbar for the "#meeting_minutes_text" field
@javascript
Scenario: Navigate to a meeting page with an open agenda and the permission to edit the minutes
Given the role "user" may have the following rights:
| view_meetings |
| create_meeting_minutes |
When I go to the show page for the meeting called "Bobs Meeting"
# Make sure we're on the right tab
And I click on "Minutes"
Then I should not see "Edit" within ".meeting_minutes"
@javascript
Scenario: Navigate to a meeting page with a closed agenda and the permission to edit the agenda
Given the role "user" may have the following rights:
| view_meetings |
| create_meeting_agendas |
And the meeting "Bobs Meeting" has 1 agenda with:
| locked | true |
When I go to the show page for the meeting called "Bobs Meeting"
# Make sure we're on the right tab
And I click on "Agenda"
Then I should not see "Edit" within ".meeting_agenda"
Scenario: Navigate to a meeting page with a closed agenda and the permission to edit the minutes and save minutes
Given the role "user" may have the following rights:
| view_meetings |
| create_meeting_minutes |
And the meeting "Bobs Meeting" has 1 agenda with:
| locked | true |
When I go to the show page for the meeting called "Bobs Meeting"
And I fill in "meeting_minutes[text]" with "Some minutes!"
And I click on "Save"
Then I should see "Minutes" within ".meeting_minutes"
And I should see "Some minutes!" within "#meeting_minutes_text"
Scenario: Navigate to a meeting page and view an older version of an agenda
Given the role "user" may have the following rights:
| view_meetings |
And the Meeting "Bobs Meeting" has 1 agenda with:
| text | blah |
And the Meeting "Bobs Meeting" has 1 agenda with:
| text | foo |
When I go to the show page for the meeting called "Bobs Meeting"
And I follow "History" within ".meeting_agenda"
And I follow "1" within "table.list"
Then I should see "Agenda" within ".meeting_agenda"
And I should see "blah" within ".meeting_agenda"