Skip to content

Commit 9e586e5

Browse files
committed
MTO-134: [Variation] Add Simple Product with required Custom Options to Cart
- Defects fixed
1 parent c7e5f62 commit 9e586e5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Product/View/CustomOptions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ protected function getListOptions()
193193
* @param string $customOptionTitle
194194
* @return bool
195195
*/
196-
public function isValidationErrorMessageVisible($customOptionTitle)
196+
public function isJsMessageVisible($customOptionTitle)
197197
{
198198
$optionSelector = $this->customOptionField . $this->requiredOption . $this->validationErrorMessage;
199199
$title = sprintf($optionSelector, $customOptionTitle);

dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductCustomOptionsErrors.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function processAssert(
2828
foreach ($products as $product) {
2929
foreach ($product->getData('custom_options') as $option) {
3030
\PHPUnit_Framework_Assert::assertTrue(
31-
$catalogProductView->getCustomOptionsBlock()->isValidationErrorMessageVisible($option['title']),
31+
$catalogProductView->getCustomOptionsBlock()->isJsMessageVisible($option['title']),
3232
'Required Custom Option ' . $option['title'] . " doesn't contain JS validation error."
3333
);
3434
}

0 commit comments

Comments
 (0)