Skip to content

Commit b6e4ed7

Browse files
committed
MAGETWO-65736: Swatch attributes are not shown on category page
1 parent 575b3b9 commit b6e4ed7

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

dev/tests/functional/tests/app/Magento/Ui/Test/Block/Adminhtml/DataGrid.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,9 +329,11 @@ public function selectMassAction($massActionSelection)
329329
$massActionList = '(' . $this->massActionToggleList . ")[$i]";
330330
if ($this->_rootElement->find($massActionButton, Locator::SELECTOR_XPATH)->isVisible()) {
331331
$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+
}
335337
break;
336338
}
337339
}

dev/tests/functional/utils/command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
if (isset($_GET['command'])) {
1414
$command = urldecode($_GET['command']);
15-
if (in_array($command, $commandList)) {
15+
if (in_array(explode(' ', $command)[0], $commandList)) {
1616
exec('php -f ../../../../bin/magento ' . $command);
1717
}
1818
} else {

0 commit comments

Comments
 (0)