Skip to content

Commit b5f7a9d

Browse files
MAGETWO-55924: [FT] Test fails because of unexpected alert window
1 parent 86d9758 commit b5f7a9d

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Product/Compare/ListCompare.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,10 @@ public function removeProduct($index = 1)
198198
$this->_rootElement->find(sprintf($this->removeButton, $index), Locator::SELECTOR_XPATH)->click();
199199
$modalElement = $this->browser->find($this->confirmModal);
200200
/** @var \Magento\Ui\Test\Block\Adminhtml\Modal $modal */
201-
$modal = $this->blockFactory->create(\Magento\Ui\Test\Block\Adminhtml\Modal::class, ['element' => $modalElement]);
201+
$modal = $this->blockFactory->create(
202+
\Magento\Ui\Test\Block\Adminhtml\Modal::class,
203+
['element' => $modalElement]
204+
);
202205
$modal->acceptAlert();
203206
}
204207

dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Product/Compare/Sidebar.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@ function () use ($rootElement, $selector) {
8888
$this->_rootElement->find($this->clearAll)->click();
8989
$modalElement = $this->browser->find($this->confirmModal);
9090
/** @var \Magento\Ui\Test\Block\Adminhtml\Modal $modal */
91-
$modal = $this->blockFactory->create(\Magento\Ui\Test\Block\Adminhtml\Modal::class, ['element' => $modalElement]);
91+
$modal = $this->blockFactory->create(
92+
\Magento\Ui\Test\Block\Adminhtml\Modal::class,
93+
['element' => $modalElement]
94+
);
9295
$modal->acceptAlert();
9396
}
9497
}

0 commit comments

Comments
 (0)