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.
98 lines
4.2 KiB
98 lines
4.2 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: Show existing 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:
|
||
|
| login | alice |
|
||
|
| language | en |
|
||
|
And there is a role "user"
|
||
|
And the role "user" may have the following rights:
|
||
|
| view_meetings |
|
||
|
And the user "alice" is a "user" in the project "dingens"
|
||
12 years ago
|
|
||
14 years ago
|
Scenario: Navigate to the meeting index page with no meetings
|
||
12 years ago
|
When I am already logged in as "alice"
|
||
14 years ago
|
And I go to the page for the project "dingens"
|
||
|
And I click on "Meetings"
|
||
|
Then I should see "Meetings" within "#content"
|
||
9 years ago
|
And I should see "There is currently nothing to display." within "#content"
|
||
12 years ago
|
|
||
14 years ago
|
Scenario: Navigate to the meeting index page with 2 meetings
|
||
14 years ago
|
Given there is 1 meeting in project "dingens" created by "alice" with:
|
||
|
| title | Meeting 1 |
|
||
|
| location | Room 1 |
|
||
|
| duration | 1:30 |
|
||
|
| start_time | 2011-02-11 12:30:00 |
|
||
|
And there is 1 meeting in project "dingens" created by "alice" with:
|
||
|
| title | Meeting 2 |
|
||
|
| location | Room 2 |
|
||
|
| duration | 2:30 |
|
||
|
| start_time | 2011-02-10 11:00:00 |
|
||
12 years ago
|
When I am already logged in as "alice"
|
||
14 years ago
|
And I go to the page for the project "dingens"
|
||
|
And I click on "Meetings"
|
||
|
Then I should see "Meetings" within "#content"
|
||
9 years ago
|
But I should not see "There is currently nothing to display." within "#content"
|
||
13 years ago
|
And I should see 4 meetings
|
||
|
|
||
|
Scenario: Lots of Meetings are split into pages
|
||
11 years ago
|
Given we paginate after 3 items
|
||
|
Given there is 3 meetings in project "dingens" that start 0 days from now with:
|
||
13 years ago
|
| title | Meeting Today |
|
||
11 years ago
|
Given there is 2 meetings in project "dingens" that start -1 days from now with:
|
||
13 years ago
|
| title | Meeting Last Week |
|
||
12 years ago
|
When I am already logged in as "alice"
|
||
13 years ago
|
And I go to the page for the project "dingens"
|
||
|
And I click on "Meetings"
|
||
11 years ago
|
# see above: means 3 meetings
|
||
|
Then I should see 6 meetings
|
||
13 years ago
|
And I should see "Meeting Today"
|
||
|
But I should not see "Meeting Last Week"
|
||
|
When I click on "2"
|
||
11 years ago
|
# means 2 meetings
|
||
|
Then I should see 4 meetings
|
||
13 years ago
|
And I should not see "Meeting Today"
|
||
|
But I should see "Meeting Last Week"
|
||
|
|
||
|
Scenario: Jumps to page of current date when no page given
|
||
11 years ago
|
Given we paginate after 3 items
|
||
|
Given there is 5 meetings in project "dingens" that start +7 days from now with:
|
||
13 years ago
|
| title | Meeting Next Week |
|
||
11 years ago
|
Given there is 5 meetings in project "dingens" that start 1 days from now with:
|
||
13 years ago
|
| title | Meeting Tomorrow |
|
||
11 years ago
|
Given there is 5 meetings in project "dingens" that start 0 days from now with:
|
||
13 years ago
|
| title | Meeting Today |
|
||
11 years ago
|
Given there is 5 meetings in project "dingens" that start -7 days from now with:
|
||
13 years ago
|
| title | Meeting Last Week |
|
||
12 years ago
|
When I am already logged in as "alice"
|
||
13 years ago
|
And I go to the page for the project "dingens"
|
||
|
And I click on "Meetings"
|
||
|
Then I should see "Meeting Today"
|
||
13 years ago
|
And I should see "Meeting Tomorrow"
|
||
|
But I should not see "Meeting Last Week"
|
||
13 years ago
|
And I should not see "Meeting Next Week"
|