Closed (fixed)
Project:
Drupal.org BDD
Version:
6.x-1.x-dev
Component:
Feature/Scenarios
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
16 Jul 2012 at 17:12 UTC
Updated:
3 Dec 2012 at 12:33 UTC
Since there are two different roles, these will end up as separate feature files:
- Logged in as an ordinary d.o user: create a new Forum post node. Verify there is not a file attachment field present [note that in D7 it might look different!!]. Logged in as a user with content admin permissions, verify that there is a file attachment field present.
Comments
Comment #1
eliza411 commentedMoving to main project
Comment #2
pradeeprkara commentedtagging for sprint 5
Comment #3
pradeeprkara commentedCreated two feature files for users: site user and admin test
Please review the commit at: b404b8b
Comment #4
eliza411 commentedLooks good except the the feature description in forum_file_uploads_siteuser.feature seems a bit off:
I'd be inclined to say what we're really testing is
Comment #5
eliza411 commentedSetting to needs work.
Comment #6
pradeeprkara commentedUpdated feature description.
Please review at 3ef74af
Comment #7
pradeeprkara commentedComment #8
eliza411 commentedWhat's here looks good to me; since the actor is now a site admin, I take back what I said about two files, let's put them in one.
Add a scenario logged in as 'admin test' to ensure files can be uploaded and change the last line of the feature to match this:
I need to know that file upload is only permitted to users with Administer content.(Unless you think two files is better)
Comment #9
pradeeprkara commentedI think merging the files would be good as we are running the same steps.
Modified and committed, Please review it at: http://drupalcode.org/project/doobie.git/blob/df093be:/features/project/forum_file_uploads_admin.feature
Comment #10
jhedstromI didn't see any step-definition code to review, so changing the component to feature/scenarios.
Comment #11
eliza411 commentedSetting to rtbc, then, so sdboyer can wrap this into the test suite.
Comment #12
eliza411 commentedmerged to master
Comment #13
alexpulido commentedUpdated title
File was moved to drupalorg folder in commit http://drupalcode.org/project/doobie.git/commit/88a1251
Comment #14
alexpulido commentedTagged all forums tests with @forums so they can be run as a feature set. http://drupalcode.org/project/doobie.git/commit/79c4450
Comment #15
tvn commentedComment #17
pradeeprkara commentedPorted to 7.x branch
http://drupalcode.org/project/doobie.git/commit/c4ffd34