10 use Magento\Catalog\Test\Page\Adminhtml\CatalogProductEdit;
11 use Magento\Catalog\Test\Page\Adminhtml\CatalogProductIndex;
12 use Magento\Mtf\Fixture\FixtureInterface;
33 CatalogProductIndex $productGrid,
34 CatalogProductEdit $productPage
36 $filter = [
'sku' =>
$product->getSku()];
37 $productGrid->open()->getProductGrid()->searchAndOpen($filter);
38 $fieldsForm = $productPage->getProductForm()->getData(
$product);
55 foreach (
$fields[
'assigned_products'] as $key =>
$item) {
56 $result[
'assigned_products'][$key][
'name'] =
$item[
'name'];
57 $result[
'assigned_products'][$key][
'qty'] =
$item[
'qty'];