-
-
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
[Behat][Shop] Added stock level dependant rendering of simple product's details page #5610
[Behat][Shop] Added stock level dependant rendering of simple product's details page #5610
Conversation
@@ -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', |
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.
All of this elements are labels somehow. out-of-stock-label
-> out-of-stock
?
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.
No idea what do you mean in the first part 😄 , 👍 for the second one though.
61b2bde
to
c29fff5
Compare
ddeccaa
to
ff1cd5a
Compare
@@ -294,6 +294,15 @@ public function iAddProductToTheCartSelectingVariant($variant, ProductInterface | |||
} | |||
|
|||
/** | |||
* @When /^I add (\d+) of (them) to (the|my) cart$/ |
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.
(the|my)
->(?:the|my)
- don't want to capture that phrase
|
||
@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 |
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.
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
517d1a3
to
45a06a6
Compare
Good job Janek! 👍 |
…tory [Behat][Shop] Added stock level dependant rendering of simple product's details page
[BC Break] - removal of
backorders
flag from sylius configuration, most likely it's going to be brought back to life or replaced afterInventory
's refactoring