Skip to content

Commit 32d9363

Browse files
committed
MTO-146: [Test] Create offline Order from "Edit Customer" Admin page
- Defects fixed
1 parent 6afc4a0 commit 32d9363

File tree

1 file changed

+5
-2
lines changed
  • dev/tests/functional/tests/app/Magento/Sales/Test/Block/Adminhtml/Order/Create/CustomerActivities/Sidebar

1 file changed

+5
-2
lines changed

dev/tests/functional/tests/app/Magento/Sales/Test/Block/Adminhtml/Order/Create/CustomerActivities/Sidebar/Wishlist.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use Magento\Sales\Test\Block\Adminhtml\Order\Create\CustomerActivities\Sidebar;
1010
use Magento\Mtf\Client\Locator;
1111
use Magento\Mtf\Fixture\InjectableFixture;
12-
use Magento\Downloadable\Test\Fixture\DownloadableProduct;
1312

1413
/**
1514
* Wish List items block on backend.
@@ -132,8 +131,12 @@ public function selectWishlist($name)
132131
*/
133132
public function selectItemToAddToOrder(InjectableFixture $product, $qty)
134133
{
134+
$configureIcon = $this->_rootElement->find(
135+
sprintf($this->addToOrderGrouped, $product->getName()),
136+
Locator::SELECTOR_XPATH
137+
)->isVisible();
135138
$productCheckoutData = $product->getData('checkout_data');
136-
if (isset($productCheckoutData['options']) && !$product instanceof DownloadableProduct) {
139+
if (isset($productCheckoutData['options']) && $configureIcon) {
137140
$this->_rootElement->find(
138141
sprintf($this->addToOrderGrouped, $product->getName()),
139142
Locator::SELECTOR_XPATH

0 commit comments

Comments
 (0)