File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
tests/app/Magento/Ui/Test/Block/Adminhtml Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -329,9 +329,11 @@ public function selectMassAction($massActionSelection)
329
329
$ massActionList = '( ' . $ this ->massActionToggleList . ")[ $ i] " ;
330
330
if ($ this ->_rootElement ->find ($ massActionButton , Locator::SELECTOR_XPATH )->isVisible ()) {
331
331
$ this ->_rootElement ->find ($ massActionButton , Locator::SELECTOR_XPATH )->click ();
332
- $ this ->_rootElement
333
- ->find (sprintf ($ massActionList , $ massActionSelection ), Locator::SELECTOR_XPATH )
334
- ->click ();
332
+ $ element = $ this ->_rootElement
333
+ ->find (sprintf ($ massActionList , $ massActionSelection ), Locator::SELECTOR_XPATH );
334
+ if ($ element ->isVisible ()) {
335
+ $ element ->click ();
336
+ }
335
337
break ;
336
338
}
337
339
}
Original file line number Diff line number Diff line change 12
12
13
13
if (isset ($ _GET ['command ' ])) {
14
14
$ command = urldecode ($ _GET ['command ' ]);
15
- if (in_array ($ command , $ commandList )) {
15
+ if (in_array (explode ( ' ' , $ command)[ 0 ] , $ commandList )) {
16
16
exec ('php -f ../../../../bin/magento ' . $ command );
17
17
}
18
18
} else {
You can’t perform that action at this time.
0 commit comments