Skip to content

Commit 845f627

Browse files
committed
MAGETWO-32592: MTF Alternative Web Driver pull request preparation
1 parent 7a4bb3d commit 845f627

File tree

3 files changed

+3
-3
lines changed
  • dev/tests/functional/tests/app/Magento
    • Bundle/Test/Block/Adminhtml/Catalog/Product/Edit/Tab/Bundle
    • ConfigurableProduct/Test/Block/Adminhtml/Product/Edit/Tab/Super
    • GroupedProduct/Test/Block/Adminhtml/Product/Grouped

3 files changed

+3
-3
lines changed

dev/tests/functional/tests/app/Magento/Bundle/Test/Block/Adminhtml/Catalog/Product/Edit/Tab/Bundle/Option.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function fillOption(array $fields)
9393
$this->_fill($mapping);
9494
$selections = $this->_rootElement->getElements($this->removeSelection);
9595
if (count($selections)) {
96-
foreach ($selections as $itemSelection) {
96+
foreach (array_reverse($selections) as $itemSelection) {
9797
$itemSelection->click();
9898
}
9999
}

dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Block/Adminhtml/Product/Edit/Tab/Super/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public function deleteAttributes()
200200
{
201201
$attributeElements = $this->_rootElement->getElements($this->attributeElement);
202202
$this->_rootElement->find($this->variationsContent)->click();
203-
foreach ($attributeElements as $element) {
203+
foreach (array_reverse($attributeElements) as $element) {
204204
$element->find($this->deleteVariationButton)->click();
205205
}
206206
}

dev/tests/functional/tests/app/Magento/GroupedProduct/Test/Block/Adminhtml/Product/Grouped/AssociatedProducts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function fillFormTab(array $fields, SimpleElement $element = null)
8383
if (isset($fields['associated'])) {
8484
$options = $this->_rootElement->getElements($this->deleteButton);
8585
if (count($options)) {
86-
foreach ($options as $option) {
86+
foreach (array_reverse($options) as $option) {
8787
$option->click();
8888
}
8989
}

0 commit comments

Comments
 (0)