/**
  * {@inheritdoc}
  */
 public function fillField($labelContent, $value, Element $element = null)
 {
     if ('Family' === $labelContent && 'None' === $value) {
         $value = '';
     }
     return parent::fillField($labelContent, $value, $element);
 }
 /**
  * {@inheritdoc}
  */
 public function fillField($locator, $value, Element $modal = null)
 {
     // Simply do not select a family
     if ('Family' === $locator && 'None' === $value) {
         return;
     }
     $select2Locator = sprintf('label:contains("%s") + .select2-container', $locator);
     $selectContainer = $this->spin(function () use($select2Locator) {
         return $this->find('css', $select2Locator);
     });
     if ($selectContainer) {
         $this->fillSelect2Field($selectContainer, $value);
     } else {
         parent::fillField($locator, $value, $modal);
     }
 }
 /**
  * {@inheritdoc}
  */
 public function __construct($session, $pageFactory, $parameters = [])
 {
     parent::__construct($session, $pageFactory, $parameters);
     $this->elements = array_merge($this->elements, ['Trees list' => ['css' => '#trees-list'], 'Category tree' => ['css' => '#trees']]);
 }
 /**
  * {@inheritdoc}
  */
 public function __construct($session, $pageFactory, $parameters = array())
 {
     parent::__construct($session, $pageFactory, $parameters);
     $this->elements = array_merge($this->elements, array('Trees list' => array('css' => '#trees-list'), 'Category tree' => array('css' => '#trees')));
 }
 /**
  * {@inheritdoc}
  */
 public function __construct($session, $pageFactory, $parameters = [])
 {
     parent::__construct($session, $pageFactory, $parameters);
     $this->elements = array_merge($this->elements, ['Trees list' => ['css' => '#trees-list'], 'Category tree' => ['css' => '#trees', 'decorators' => ['Pim\\Behat\\Decorator\\TreeDecorator\\JsTreeDecorator']]]);
 }