New content type and feature have been deployed on d.o yesterday. /books is now a subsection of the Marketplace. This section currently has no content, so this issue is postponed.
Once the content is there, I'll add the list of tests we need for this section.

Comments

tvn’s picture

Status: Postponed » Needs work

Books section now has content: http://drupal.org/books, so tests can be written.

I think we need 2 feature files:
marketplace_book_listing.feature
to include usual tests for the book listing content type:
- authenticated users can create and edit own book listings
- auth users can't edit other's book listings
- creation of the book listing works, data entered in all fields is saved and displayed on the page
- when created - book listing is unpublished

and
marketplace_books.feature
to include tests for the Books section itself:
- once book listing is edited by admin and published - it should appear in the list
- filtering at the top of the list should work
- sidebar block shows up and guidelines link works

sachin2dhoni’s picture

Assigned: Unassigned » sachin2dhoni
sachin2dhoni’s picture

Status: Needs work » Needs review
Issue tags: +sprint 19

Added the features and commited to 6.x branch.

Please check the commit log:
6.x
http://drupalcode.org/project/doobie.git/commit/48c8475

As the "/books" page is not available in 7.x so the added the @known_git7failure tag in the feature file.

7.x
http://drupalcode.org/project/doobie.git/commit/c2c5177

tvn’s picture

Status: Needs review » Needs work

Updated both files (on 6.x), edited Featured and Scenario descriptions, removed some duplicate scenarios. Modified some new scenarios and steps, and removed not needed ones.
http://drupalcode.org/project/doobie.git/commit/b09886e

marketplace_books.feature:

    When I select "Available" from "Status"
    And I select "Drupal 7.x" from "Drupal version"
    And I select "Designers/themers" from "Audience"
    And I select "Print" from "Format"
    When I select the following <fields> with <values>
    | fields         | values                 |
    | Status         | Available              |
    | Drupal version | Drupal 7.x             |
    | Audience       | Designers/themers      |
    | Format         | Print                  |

this seems like steps repeat each other.

Tests in this file pass for me.

marketplace_book_listing.feature:
I've used such step Then I should not see the random "Title" link
to check that pages are unpublished when created. Apparently it does not exist yet :)
Please implement it unless there is some other existing step which can be used here.

sachin2dhoni’s picture

Status: Needs work » Needs review
tvn’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Needs review » Reviewed & tested by the community

Looks good, thanks! I guess it's 7.x now.

eliza411’s picture

Status: Reviewed & tested by the community » Closed (fixed)

Test is failing appropriately ...