marketplace_organization.feature
http://drupalcode.org/project/doobie.git/commit/b5477c3

Moved here all tests related to site user creating org node.

What this file still needs:

1. Check that org node can't be created without filling required fields.
2. Scenario: View an issue request for services section
and
Scenario: View an issue request for training section

need to navigate to the issue not through the Dashboard, but through the organization page. It is important to check that organization page's author can see the messages "Regarding Services listing ..." and "Regarding Training listing..." with proper links to related issues on their pages.

3. Check that site user can't see messages mentioned in 2 on pages not created by him
4. Check that site user can't edit organization pages not create by him
5. Scenario: Add organization and request promotion to Services section
Given I am logged in as "site user"
And I visit "/node/add/organization"

instead of going directly to /node/add it should go:
/drupal-services -> "Add your listing" to make sure link works
6. Scenario: Add organization and request promotion to Training section
Given I am logged in as "site user"
And I visit "/node/add/organization"

instead of going directly to /node/add it should go:
/training -> "Add your listing" to make sure link works
7. Check that when user filled all fields and saved new node - content of the fields actually shows up on the page

Comments

tvn’s picture

Issue summary: View changes

.

sachin2dhoni’s picture

Assigned: Unassigned » sachin2dhoni
Status: Active » Needs review
Issue tags: +sprint 15

Upload to 6.x branch with the changes.

Please check the commit logs:1774f06 and 7267ba0

5. Scenario: Add organization and request promotion to Services section
Given I am logged in as "site user"
And I visit "/node/add/organization"

instead of going directly to /node/add it should go:
/drupal-services -> "Add your listing" to make sure link works
6. Scenario: Add organization and request promotion to Training section
Given I am logged in as "site user"
And I visit "/node/add/organization"

instead of going directly to /node/add it should go:
/training -> "Add your listing" to make sure link works

In the above two scenarios we are using "/node/add" step because in git6 and git 7 once we click the "Add your listing" it is being redirected to "http://drupal.org/node/add/organization".I guess this issues has already raised in to the webmasters queue.So once this is fixed we can write the step for checking the link "Add your listing" works.

tvn’s picture

I fixed settings of "Add your listing" button on the live site. It should get into git6 soon I guess.

tvn’s picture

Issue summary: View changes

adding 5 and 6

tvn’s picture

Status: Needs review » Needs work

The file looks good, I've just added 1 text string (http://drupalcode.org/project/doobie.git/commit/7262e2f).
Once 5 and 6 are done, I'd call this fixed.

tvn’s picture

Issue summary: View changes

.

tvn’s picture

This file also needs an expanded test of organization node creation, similar to http://drupalcode.org/project/doobie.git/blob/HEAD:/features/drupalorg/c...
User fills in all the fields and saves the node, we need to check that content of the fields is actually being saved and shows up on the organization page.
(Here is our recent problem, which could've been prevented with such a test: #1825814: Apachesolr 6.x-3.x and CCK cause corrupt field caching)

sachin2dhoni’s picture

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

Updated to 6x branch with the suggested changes as per comment #4
Also the points 5 and 6 mentioned in the comment #1 are also fixed.

Please check the commit log below.
http://drupalcode.org/project/doobie.git/commit/0b4a37d and
http://drupalcode.org/project/doobie.git/commit/95f54cb

sachin2dhoni’s picture

Issue summary: View changes

adding 7

tvn’s picture

Status: Needs review » Needs work

Can we test not only "Organization name" and "Drupal contributions" fields but more?

Organization Name
Website
Logo
Services
Sectors
Locations
Contributions
Org description
Headquarters
Project budget
Training url
Training description

There is no need to do it twice - in scenarios with requests for Services section and Training section. Just once is enough.

pradeeprkara’s picture

Status: Needs work » Needs review

Updated with steps to view the submitted data.
A new step definition has been created to check the logo

Please review: http://drupalcode.org/project/doobie.git/commit/f7b4bd6

tvn’s picture

There is a typo: "And I should see the oraganization logo".
Apart from that looks good.

pradeeprkara’s picture

sachin2dhoni’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Issue tags: +sprint 17
eliza411’s picture

Status: Needs review » Reviewed & tested by the community

As ready as this can be until the D7 Drupal.org upgrade is ready for feedback.

eliza411’s picture

Component: Feature/Scenarios » Failing test
Assigned: sachin2dhoni » tvn

The phrase "Request improvements to vocabularies by" is checked several times but is not present. Is this a problem, or has this been removed or rephrased for the upgraded site?

eliza411’s picture

Status: Reviewed & tested by the community » Needs work
eliza411’s picture

In addition to the question in #12, when I fill out all the fields logged in as site user, including checking both the "drupal services" checkbox and the "training" checkbox, I receive the following:

Notice: Undefined index: classes in field_group_pre_render_prepare() (line 507 of /var/www/git-dev.drupal.org/htdocs/sites/all/modules/field_group/field_group.module).
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '2040649' for key 'PRIMARY': INSERT INTO {node} (nid, vid, type, language, title, uid, status, created, changed, comment, promote, sticky, tnid, translate) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9, :db_insert_placeholder_10, :db_insert_placeholder_11, :db_insert_placeholder_12, :db_insert_placeholder_13); Array ( [:db_insert_placeholder_0] => 2040649 [:db_insert_placeholder_1] => 4542075 [:db_insert_placeholder_2] => organization [:db_insert_placeholder_3] => und [:db_insert_placeholder_4] => 01-asfsdasfsa [:db_insert_placeholder_5] => 2642387 [:db_insert_placeholder_6] => 1 [:db_insert_placeholder_7] => 1374535358 [:db_insert_placeholder_8] => 1374535358 [:db_insert_placeholder_9] => 1 [:db_insert_placeholder_10] => 0 [:db_insert_placeholder_11] => 0 [:db_insert_placeholder_12] => 0 [:db_insert_placeholder_13] => 0 ) in drupal_write_record() (line 7136 of /var/www/git-dev.drupal.org/htdocs/includes/common.inc).

tvn’s picture

Status: Needs work » Postponed

Re #12 - removed that text from feature files.
For #14 - #2050185: PDOException on node/add/organization form

tvn’s picture

Issue summary: View changes

.