Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (21 sloc) 1.103 kB
Feature: Editing attachments
In order to send the best version of a policy to the departmental editor
A writer
Should be able to manipulate the attachments on a document
Background:
Given I am a writer
Scenario: Removing an attachment
Given a draft publication "Legalise beards" with a PDF attachment
When I remove the attachment from the publication "Legalise beards"
And I visit the list of draft documents
And I view the publication "Legalise beards"
Then I should not see a link to the PDF attachment
Scenario: Preserving attachments on published documents
Given a published publication "Standard Beard Lengths" with a PDF attachment
When I remove the attachment from a new draft of the publication "Standard Beard Lengths"
And I visit the publication "Standard Beard Lengths"
Then I should see a link to the PDF attachment
Scenario: Remember uploaded file after validation failure
Given I attempt to create an invalid publication with an attachment
When I set the publication title to "Validation Error Fixed" and save
Then I should see a link to the PDF attachment
Jump to Line
Something went wrong with that request. Please try again.