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.
52 lines
1.8 KiB
52 lines
1.8 KiB
12 years ago
|
#-- copyright
|
||
|
# OpenProject is a project management system.
|
||
|
#
|
||
|
# Copyright (C) 2012-2013 the OpenProject Team
|
||
|
#
|
||
|
# This program is free software; you can redistribute it and/or
|
||
|
# modify it under the terms of the GNU General Public License version 3.
|
||
|
#
|
||
|
# See doc/COPYRIGHT.rdoc for more details.
|
||
|
#++
|
||
|
|
||
11 years ago
|
Feature: Paginated work packages index list
|
||
12 years ago
|
|
||
|
Background:
|
||
11 years ago
|
Given we paginate after 3 items
|
||
12 years ago
|
And there is 1 project with the following:
|
||
12 years ago
|
| identifier | project1 |
|
||
|
| name | project1 |
|
||
11 years ago
|
And the project "project1" has the following types:
|
||
12 years ago
|
| name | position |
|
||
|
| Bug | 1 |
|
||
12 years ago
|
And there is 1 user with the following:
|
||
|
| login | bob |
|
||
|
And there is a role "member"
|
||
|
And the role "member" may have the following rights:
|
||
12 years ago
|
| view_work_packages |
|
||
12 years ago
|
And the user "bob" is a "member" in the project "project1"
|
||
11 years ago
|
And the user "bob" has 4 issues with the following:
|
||
12 years ago
|
| subject | Issuesubject |
|
||
11 years ago
|
And I am already logged in as "bob"
|
||
12 years ago
|
|
||
|
Scenario: Pagination within a project
|
||
11 years ago
|
When I go to the work packages index page of the project "project1"
|
||
|
Then I should see 3 issues
|
||
12 years ago
|
When I follow "2" within ".pagination"
|
||
11 years ago
|
Then I should be on the work packages index page of the project "project1"
|
||
12 years ago
|
And I should see 1 issue
|
||
|
|
||
|
Scenario: Pagination outside a project
|
||
11 years ago
|
When I go to the global index page of work packages
|
||
|
Then I should see 3 issues
|
||
12 years ago
|
When I follow "2" within ".pagination"
|
||
11 years ago
|
Then I should be on the global index page of work packages
|
||
12 years ago
|
And I should see 1 issue
|
||
11 years ago
|
|
||
11 years ago
|
Scenario: Changing issues per page
|
||
11 years ago
|
When I go to the work packages index page of the project "project1"
|
||
11 years ago
|
Then I follow "2" within ".pagination"
|
||
|
Then I should see 1 issue
|
||
11 years ago
|
Then I follow "100" within ".per_page_options"
|
||
|
Then I should see 4 issues
|