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
Comment #0.0
tvn commented.
Comment #1
sachin2dhoni commentedUpload to 6.x branch with the changes.
Please check the commit logs:1774f06 and 7267ba0
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.
Comment #2
tvn commentedI fixed settings of "Add your listing" button on the live site. It should get into git6 soon I guess.
Comment #2.0
tvn commentedadding 5 and 6
Comment #3
tvn commentedThe 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.
Comment #3.0
tvn commented.
Comment #4
tvn commentedThis 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)
Comment #5
sachin2dhoni commentedUpdated 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
Comment #5.0
sachin2dhoni commentedadding 7
Comment #6
tvn commentedCan 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.
Comment #7
pradeeprkara commentedUpdated 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
Comment #8
tvn commentedThere is a typo: "And I should see the oraganization logo".
Apart from that looks good.
Comment #9
pradeeprkara commentedCorrected the type : http://drupalcode.org/project/doobie.git/commit/e798a6d
Comment #10
sachin2dhoni commentedPorted to 7.x
http://drupalcode.org/project/doobie.git/commit/bf093ff
Comment #11
eliza411 commentedAs ready as this can be until the D7 Drupal.org upgrade is ready for feedback.
Comment #12
eliza411 commentedThe 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?
Comment #13
eliza411 commentedComment #14
eliza411 commentedIn 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).
Comment #15
tvn commentedRe #12 - removed that text from feature files.
For #14 - #2050185: PDOException on node/add/organization form
Comment #15.0
tvn commented.