-
-
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
[CatalogPromotion][UI][Shop] Fixed label displaying after option change #13604
Conversation
@@ -124,7 +123,7 @@ public function getCatalogPromotionName(): string | |||
|
|||
public function hasCatalogPromotionApplied(string $name): bool | |||
{ | |||
$catalogPromotions = $this->getDocument()->findAll('css', '.promotion_label'); | |||
$catalogPromotions = $this->getDocument()->findAll('css', '.column .promotion_label'); |
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.
src/Sylius/Behat/Context/Transform/ProductOptionValueContext.php
Outdated
Show resolved
Hide resolved
src/Sylius/Behat/Context/Transform/ProductOptionValueContext.php
Outdated
Show resolved
Hide resolved
src/Sylius/Behat/Context/Transform/ProductOptionValueContext.php
Outdated
Show resolved
Hide resolved
Assert::eq( | ||
count($productOptionValues), | ||
1, |
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.
Assert::eq( | |
count($productOptionValues), | |
1, | |
Assert::count( | |
$productOptionValues, | |
1, |
Assert::eq( | ||
count($productOptionValues), | ||
1, | ||
sprintf('%d product option values has been found with name "%s" but should be only one.', count($productOptionValues), $code) |
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.
sprintf('%d product option values has been found with name "%s" but should be only one.', count($productOptionValues), $code) | |
sprintf('%d product option values have been found with name "%s" but should be only one.', count($productOptionValues), $code) |
@@ -410,6 +410,14 @@ public function iShouldSeeProductNotDiscountedOnTheList(string $productName): vo | |||
Assert::null($originalPrice); | |||
} | |||
|
|||
/** | |||
* @Then /^I should see this product is not discounted$/ |
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.
* @Then /^I should see this product is not discounted$/ | |
* @Then I should see this product is not discounted |
Thank you, Rafał! 🎉 |
Displaying a proper catalog promotion labels while switching product's variants