-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Shop] Sign in and registration feature #5073
Conversation
Arminek
commented
May 20, 2016
•
edited
Loading
edited
Q | A |
---|---|
Bug fix? | no |
New feature? | no |
BC breaks? | no |
Related tickets | #4939 |
License | MIT |
1e8ce3e
to
2a57b1e
Compare
@customer_account | ||
Feature: Account registration | ||
In order to order products | ||
As a visitor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Visitor
[Behat] Add login page and account context [Shop][Security] create shop firewall [Behat][Shop] Registering, reseting password features
*/ | ||
public function checkValidationMessageFor($element, $message) | ||
{ | ||
$foundedElement = $this->getFieldElement($element); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$foundElement
bd54338
to
b9a0fd3
Compare
OK, I looked at the code and I think we should separate the login and register from "account". Account should be only for stuff in "My account" section = change of password, profile edit, order history and address book. Login and register should be separate context and different level of pages: `````` sylius.behat.page.shop.login WDYT? Maybe LoginContext and RegistrationContext?
|
{ | ||
$resolver->setDefaults([ | ||
'data_class' => $this->dataClass, | ||
'validation_groups' => $this->validationGroups, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure about this change WDYT @pjedrzejewski ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you need to override here exactly? Not perfect, but would be better to call parent::configureOptions, otherwise we do not even know what you change unless we check parent method. Added cascade_validation? Why you need it?
680f671
to
4c17307
Compare
Nice work Arek, thanks! |
[Shop] Sign in and registration feature