File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/Edit/Section Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -402,4 +402,21 @@ public function getFileOptionElements()
402402 {
403403 return $ this ->_rootElement ->getElements ($ this ->hintMessage );
404404 }
405+
406+ /**
407+ * @inheritdoc
408+ */
409+ protected function _fill (array $ fields , SimpleElement $ element = null )
410+ {
411+ $ context = ($ element === null ) ? $ this ->_rootElement : $ element ;
412+ foreach ($ fields as $ name => $ field ) {
413+ $ element = $ this ->getElement ($ context , $ field );
414+ if (!$ element ->isDisabled ()) {
415+ $ element ->getContext ()->hover ();
416+ $ element ->setValue ($ field ['value ' ]);
417+ } else {
418+ throw new \Exception ("Unable to set value to field ' $ name' as it's disabled. " );
419+ }
420+ }
421+ }
405422}
You can’t perform that action at this time.
0 commit comments