9 use Magento\Mtf\Constraint\AbstractConstraint;
10 use Magento\Catalog\Test\Page\Adminhtml\CatalogProductIndex;
11 use Magento\Mtf\Fixture\FixtureInterface;
26 public function processAssert(
28 CatalogProductIndex $productGrid,
29 string $priceTypeSymbol,
30 \
Magento\Catalog\Test\Page\Adminhtml\CatalogProductNew $catalogProductNew
32 $filter = [
'sku' =>
$product->getSku()];
34 $productGrid->getProductGrid()->searchAndOpen($filter);
36 $catalogProductNew->getProductForm()->openSection(
'customer-options');
39 $options = $catalogProductNew->getProductForm()->getSection(
'customer-options');
44 $valuesFromForm =
$options->getValuesDataForOption(
50 foreach ($valuesFromForm as
$value) {
51 \PHPUnit\Framework\Assert::assertEquals($priceTypeSymbol,
$value[
'add_before']);
61 return 'Price for custom options has correct addbefore.';