Logo: Relish

  1. Sign in

Project: Otwarchive

Edit Works Dates

  • @works

In order to have an archive full of works
As an author
I want to edit existing works

Scenarios
Editing dates on a work
Given
I have loaded the fixtures
And
I am logged in as "testuser" with password "testuser"
When
I am on testuser's works page
Then
I should not see "less than 1 minute ago"
And
I should see "29 Apr 2012"
When
I follow "First work"
Then
I should see "first fandom"
And
I should see "Edit"
When
I follow "Edit"
Then
I should see "Edit Work"
When
I fill in "content" with "first chapter content"
And
I check "chapters-options-show"
And
I fill in "work_wip_length" with "3"
And
I press "Preview"
Then
I should see "Preview"
And
I should see "Fandom: first fandom"
And
I should see "first chapter content"
And
I should see "Published:2010-04-30"
When
I update the work
Then
I should see "Work was successfully updated."
And
I should see "Published:2010-04-30"
And
I should not see Updated today
When
I follow "Add Chapter"
And
I fill in "content" with "this is my second chapter"
And
I press "Preview"
Then
I should see "This is a draft showing what this chapter will look like"
When
I press "Post"
Then
I should see "Chapter was successfully updated."
And
I should see "Published:2010-04-30"
And
I should see Updated today
When
I am on testuser's works page
Then
I should see "less than 1 minute ago"
And
I should not see "29 Apr 2010"
When
I edit the work "First work"
And
I check "backdate-options-show"
When
I select "1" from "work_chapter_attributes_published_at_3i"
And
I select "January" from "work_chapter_attributes_published_at_2i"
And
I select "1990" from "work_chapter_attributes_published_at_1i"
And
I press "Preview"
And
I press "Update"
Then
I should see "Published:1990-01-01"
And
I should see "first chapter content"
And
I should not see "this is my second chapter"
And
I should see "Updated:1990-01-01"
When
I follow "Next Chapter"
Then
I should see "Published:1990-01-01"
And
I should see "Updated:1990-01-01"
And
I should not see "first chapter content"
And
I should see "this is my second chapter"
When
I follow "Edit Chapter"
And
I select "16" from "chapter_published_at_3i"
And
I select "January" from "chapter_published_at_2i"
And
I select "2013" from "chapter_published_at_1i"
And
I press "Preview"
And
I press "Update"
Then
I should see "Published:1990-01-01"
And
I should see "Updated:2013-01-16"
And
I should not see "first chapter content"
And
I should see "this is my second chapter"
When
I follow "Previous Chapter"
Then
I should see "Published:1990-01-01"
And
I should see "Updated:2013-01-16"
And
I should not see Updated today
And
I should see "first chapter content"
And
I should not see "this is my second chapter"

Last published about 7 years ago by otwcode.