Skip to content
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

Merged
merged 2 commits into from
May 25, 2016

Conversation

Arminek
Copy link
Contributor

@Arminek Arminek commented May 20, 2016

Q A
Bug fix? no
New feature? no
BC breaks? no
Related tickets #4939
License MIT

@michalmarcinkowski michalmarcinkowski added the Shop ShopBundle related issues and PRs. label May 20, 2016
@Arminek Arminek force-pushed the new-shop-sign-in branch from 0995802 to 5021dbf Compare May 23, 2016 22:31
@Arminek Arminek changed the title [WIP][Shop] Sign in feature [Shop] Sign in and registration feature May 23, 2016
@Arminek Arminek force-pushed the new-shop-sign-in branch 2 times, most recently from 1e8ce3e to 2a57b1e Compare May 23, 2016 23:25
@customer_account
Feature: Account registration
In order to order products
As a visitor
Copy link
Contributor

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
@Arminek Arminek force-pushed the new-shop-sign-in branch from 8606bd6 to bcdd243 Compare May 24, 2016 10:21
*/
public function checkValidationMessageFor($element, $message)
{
$foundedElement = $this->getFieldElement($element);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$foundElement

@Arminek Arminek force-pushed the new-shop-sign-in branch 2 times, most recently from bd54338 to b9a0fd3 Compare May 24, 2016 11:13
@pjedrzejewski
Copy link
Member

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 sylius.behat.page.shop.register``

WDYT? Maybe LoginContext and RegistrationContext?

@Arminek Arminek force-pushed the new-shop-sign-in branch from b9a0fd3 to 1db117b Compare May 24, 2016 13:32
{
$resolver->setDefaults([
'data_class' => $this->dataClass,
'validation_groups' => $this->validationGroups,
Copy link
Contributor Author

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 ?

Copy link
Member

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?

@Arminek Arminek force-pushed the new-shop-sign-in branch 3 times, most recently from 680f671 to 4c17307 Compare May 25, 2016 07:21
@Arminek Arminek force-pushed the new-shop-sign-in branch from 4c17307 to e16b238 Compare May 25, 2016 07:46
@pjedrzejewski pjedrzejewski merged commit b2667e4 into Sylius:master May 25, 2016
@pjedrzejewski
Copy link
Member

Nice work Arek, thanks!

pamil pushed a commit to pamil/Sylius that referenced this pull request May 7, 2019
[Shop] Sign in and registration feature
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Shop ShopBundle related issues and PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants