Closed (fixed)
Project:
Drupal.org BDD
Version:
7.x-1.x-dev
Component:
Feature/Scenarios
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
14 Nov 2012 at 16:08 UTC
Updated:
23 Jul 2013 at 19:59 UTC
Test that user can enable his contact form, disable it and use other people's contact forms.
Feature: User contact form
In order to allow or stop other people from contacting me
As an authenticated user
I should be able to enable or disable my contact form
Comments
Comment #1
pradeeprkara commentedpersonal contact form is not loading for both authenticated user and anonymous user even after enabling Personal contact form checkbox. Instead it shows Access denied. Are there any other dependencies or is there any other way to access the form?
I tried with the below url:
http://git6site.devdrupal.org/user/2384543/contact
Same with drupal.org.
Comment #2
git-vetted commentedI am reproduce this as follows:
As user411 with my contact form enabled:
I cannot access my own form (perhaps normal)
I cannot access as an anonymous user (not sure if this is expected)
I can access if I'm logged in as a different user (git-vetted) or an admin user (eliza411)
Form: http://drupal.org/user/1102856/contact
site user should be able to access git user's form and visa versa, if that helps.
Comment #3
pradeeprkara commentedComment #4
pradeeprkara commentedAdded the feature.
Considered the following cases:
Please review: c70c190
Comment #5
tvn commented"I cannot access my own form" - yes, this is normal I think
"I cannot access as an anonymous user" - yes, this is expected
"I can access if I'm logged in as a different user" - correct
The file looks good to me.
Only question - can't we use direct urls to user pages e.g. user/44444 instead of doing whole that search thing?
Comment #6
pradeeprkara commentedThe user profile url has the user id in it and later when we run the tests against drupal.org, the user id may change and it will be a rework. If this is okay, we can make it directly visits profile url.
Please confirm.
Comment #7
tvn commentedDo all the user accounts we use for testing already exist on Drupal.org? Or are they being created for git6 and git7 sites only?
If they are registered on Drupal.org - user id will always be the same on live and dev and staging sites and we could use direct profile urls.
Comment #8
pradeeprkara commentedNope, the test users are specific to git6 and git6 test environments.
Comment #9
kssundar commentedNeed 7.x porting
Comment #10
pradeeprkara commentedThere is no equivalent user search module at git7 as that at http://git6site.devdrupal.org/search/user_search .
Marked those scenarios as @known_git7failures.
This is ported to 7.x
http://drupalcode.org/project/doobie.git/commit/85e7f79
Comment #11
pradeeprkara commentedTagging
Comment #12
eliza411 commentedI decided to remove known_failure tags since so much of the site is in progress and failing. I think this is as complete as we can make it and the missing search/user_search will have to be addressed during a feature set review when D7 Drupal.org is ready for feedback.
Comment #13
eliza411 commented