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 @@ -403,4 +403,21 @@ public function getFileOptionElements()
403403 {
404404 return $ this ->_rootElement ->getElements ($ this ->hintMessage );
405405 }
406+
407+ /**
408+ * @inheritdoc
409+ */
410+ protected function _fill (array $ fields , SimpleElement $ element = null )
411+ {
412+ $ context = ($ element === null ) ? $ this ->_rootElement : $ element ;
413+ foreach ($ fields as $ name => $ field ) {
414+ $ element = $ this ->getElement ($ context , $ field );
415+ if (!$ element ->isDisabled ()) {
416+ $ element ->getContext ()->hover ();
417+ $ element ->setValue ($ field ['value ' ]);
418+ } else {
419+ throw new \Exception ("Unable to set value to field ' $ name' as it's disabled. " );
420+ }
421+ }
422+ }
406423}
You can’t perform that action at this time.
0 commit comments