Logo: Relish

  1. Sign in

Project: Openproject

Attachments on work packages

Background
Given
there is 1 project with the following:
name parent
identifier parent
And
I am working in project "parent"
And
the project "parent" has the following types:
name position
Bug 1
And
there is a default issuepriority with:
name Normal
And
there is a role "member"
And
the role "member" may have the following rights:
view_work_packages
edit_work_packages
And
there is 1 user with the following:
login bob
And
the user "bob" has the following preferences
warn_on_leaving_unsaved 0
And
the user "bob" is a "member" in the project "parent"
And
there are the following issue status:
name is_closed is_default
New false true
Given
the user "bob" has 1 issue with the following:
subject work package 1
type Bug
Given
the issue "work package 1" has an attachment "logo.gif"
And
I am already logged in as "bob"
Scenarios
A work package's attachment is listed
When
I go to the page for the issue "work package 1"
Then
I should see "logo.gif" within ".icon-attachment"
Deleting a work package's attachment is possible
When
I go to the page for the issue "work package 1"
When
I click the first delete attachment link
Then
I should not see ".icon-attachment"
  • @javascript
Deleting attachment while editing a work package
When
I go to the page for the work package "work package 1"
And
I select "Update" from the action menu
And
I fill in "Notes" with "Note message"
When
I click the first delete attachment link
And
I accept the alert dialog
Then
I should not see ".icon-attachment"
And
the "Notes" field should contain "Note message"

Last published about 7 years ago by myabc.