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

[Behat][Shop] Added stock level dependant rendering of simple product's details page #5610

Merged

Conversation

NoResponseMate
Copy link
Contributor

@NoResponseMate NoResponseMate commented Jul 26, 2016

Q A
Bug fix? no
New feature? no
BC breaks? yes
Related tickets -
License MIT

[BC Break] - removal of backorders flag from sylius configuration, most likely it's going to be brought back to life or replaced after Inventory's refactoring

@@ -114,7 +130,8 @@ protected function getDefinedElements()
{
return array_merge(parent::getDefinedElements(), [
'name' => '#sylius-product-name',
'attributes' => '#sylius-product-attributes'
'attributes' => '#sylius-product-attributes',
'out-of-stock-label' => '#sylius-product-out-of-stock',
Copy link
Member

Choose a reason for hiding this comment

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

All of this elements are labels somehow. out-of-stock-label -> out-of-stock?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No idea what do you mean in the first part 😄 , 👍 for the second one though.

@NoResponseMate NoResponseMate changed the title [Behat][Shop] Added stock level dependant rendering of product pages [Behat][Shop] Added stock level dependant rendering of single product details page Jul 27, 2016
@NoResponseMate NoResponseMate changed the title [Behat][Shop] Added stock level dependant rendering of single product details page [Behat][Shop] Added stock level dependant rendering of simple product's details page Jul 27, 2016
@@ -294,6 +294,15 @@ public function iAddProductToTheCartSelectingVariant($variant, ProductInterface
}

/**
* @When /^I add (\d+) of (them) to (the|my) cart$/
Copy link
Contributor

Choose a reason for hiding this comment

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

(the|my) ->(?:the|my) - don't want to capture that phrase

@pjedrzejewski pjedrzejewski added BC Break PRs introducing BC breaks (do not even try to merge). Behat Issues and PRs aimed at improving Behat usage. Shop ShopBundle related issues and PRs. labels Jul 28, 2016

@ui
Scenario: Not being able to add a product to the cart when it is out of stock
Given the product "T-shirt banana" is not available at the moment
Copy link
Contributor

Choose a reason for hiding this comment

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

is not available at the moment this can be confusing because the product can be disabled, not available in the channel and probably few more, we should be more explicit e.g. the product "X" is out of stock

@michalmarcinkowski michalmarcinkowski merged commit 3594318 into Sylius:master Jul 29, 2016
@michalmarcinkowski
Copy link
Contributor

Good job Janek! 👍

@NoResponseMate NoResponseMate deleted the stockpile-the-inventory branch August 2, 2016 14:09
pamil pushed a commit to pamil/Sylius that referenced this pull request May 7, 2019
…tory

[Behat][Shop] Added stock level dependant rendering of simple product's details page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BC Break PRs introducing BC breaks (do not even try to merge). Behat Issues and PRs aimed at improving Behat usage. Shop ShopBundle related issues and PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants