Example #1
0
 /**
  * Fill 'Advanced Attribute Properties' tab.
  *
  * @param array $fields
  * @param SimpleElement|null $element
  * @return $this
  */
 public function fillFormTab(array $fields, SimpleElement $element = null)
 {
     if (!$this->_rootElement->find($this->propertiesTabContent)->isVisible()) {
         $this->_rootElement->find($this->propertiesTab)->click();
     }
     return parent::fillFormTab($fields, $element);
 }
Example #2
0
 /**
  * Set the mapping and fill the form.
  *
  * @param array $fields
  * @param SimpleElement|null $element
  * @return $this
  *
  * @SuppressWarnings(PHPMD.UnusedLocalVariable)
  */
 public function setFieldsData(array $fields, SimpleElement $element = null)
 {
     foreach ($fields as $key => $value) {
         $this->mapping[$key] = self::FIELD_PREFIX . $key;
     }
     return parent::setFieldsData($fields, $element);
 }
 /**
  * Fixture mapping.
  *
  * @param array|null $fields
  * @param string|null $parent
  * @return array
  */
 protected function dataMapping(array $fields = null, $parent = null)
 {
     if (isset($fields['custom_attribute'])) {
         $this->placeholders = ['attribute_code' => $fields['custom_attribute']['value']['code']];
         $this->applyPlaceholders();
     }
     return parent::dataMapping($fields, $parent);
 }
Example #4
0
 /**
  * Fill data to fields on tab.
  *
  * @param array $fields
  * @param SimpleElement|null $element
  * @return $this
  */
 public function fillFormTab(array $fields, SimpleElement $element = null)
 {
     parent::fillFormTab($fields, $element);
     $this->clickContinue();
     return $this;
 }
Example #5
0
 /**
  * @constructor
  * @param SimpleElement $element
  * @param BlockFactory $blockFactory
  * @param Mapper $mapper
  * @param BrowserInterface $browser
  * @param SequenceSorterInterface $sequenceSorter
  * @param ObjectManager $objectManager
  * @param array $config [optional]
  */
 public function __construct(SimpleElement $element, BlockFactory $blockFactory, Mapper $mapper, BrowserInterface $browser, SequenceSorterInterface $sequenceSorter, ObjectManager $objectManager, array $config = [])
 {
     $this->objectManager = $objectManager;
     parent::__construct($element, $blockFactory, $mapper, $browser, $sequenceSorter, $config);
 }
Example #6
0
 /**
  * Fill data to fields on tab.
  *
  * @param array $fields
  * @param SimpleElement|null $element
  * @return $this
  */
 public function setFieldsData(array $fields, SimpleElement $element = null)
 {
     parent::setFieldsData($fields, $element);
     $this->clickContinue();
     return $this;
 }