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.
47 lines
1.6 KiB
47 lines
1.6 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: Attachments on work packages
|
||
12 years ago
|
Background:
|
||
11 years ago
|
Given there is 1 project with the following:
|
||
12 years ago
|
| name | parent |
|
||
|
| identifier | parent |
|
||
12 years ago
|
And I am working in project "parent"
|
||
11 years ago
|
And the project "parent" has the following types:
|
||
12 years ago
|
| name | position |
|
||
|
| Bug | 1 |
|
||
|
And there is a default issuepriority with:
|
||
|
| name | Normal |
|
||
12 years ago
|
And there is a role "member"
|
||
|
And the role "member" may have the following rights:
|
||
12 years ago
|
| view_work_packages |
|
||
|
| edit_work_packages |
|
||
12 years ago
|
And there is 1 user with the following:
|
||
|
| login | bob|
|
||
|
And the user "bob" is a "member" in the project "parent"
|
||
|
And there are the following issue status:
|
||
12 years ago
|
| name | is_closed | is_default |
|
||
|
| New | false | true |
|
||
12 years ago
|
Given the user "bob" has 1 issue with the following:
|
||
11 years ago
|
| subject | issue1 |
|
||
|
| type | Bug |
|
||
11 years ago
|
Given the issue "issue1" has an attachment "logo.gif"
|
||
11 years ago
|
And I am already logged in as "bob"
|
||
12 years ago
|
|
||
11 years ago
|
Scenario: A work package's attachment is listed
|
||
12 years ago
|
When I go to the page for the issue "issue1"
|
||
|
Then I should see "logo.gif" within ".icon-attachment"
|
||
|
|
||
11 years ago
|
Scenario: Deleting a work package's attachment is possible
|
||
12 years ago
|
When I go to the page for the issue "issue1"
|
||
|
When I click the first delete attachment link
|
||
|
Then I should not see ".icon-attachment"
|