Skip to content

Commit 6afc4a0

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

File tree

1 file changed

+4
-21
lines changed

1 file changed

+4
-21
lines changed

dev/tests/functional/tests/app/Magento/Sales/Test/TestCase/CreateOrderFromEditCustomerPageTest.php

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -254,39 +254,26 @@ public function test(
254254
foreach ([$products[0], $products[2]] as $product) {
255255
$createBlock->getItemsBlock()->selectItemAction($product, 'Move to Wish List');
256256
}
257-
258257
$createBlock->updateItems();
259258
$this->assertItemsOrderedSectionContainsProducts->processAssert($this->orderCreateIndex, [$products[1]]);
260259
$this->assertProductsIsPresentInCustomerBackendWishlist
261-
->processAssert(
262-
$customer,
263-
$this->customerIndexEdit,
264-
[$products[0], $products[2]]
265-
);
260+
->processAssert($customer, $this->customerIndexEdit, [$products[0], $products[2]]);
266261
$this->assertCartSectionIsEmptyOnBackendOrderPage->processAssert($this->orderCreateIndex);
267262
$this->orderCreateIndex->getSidebarWishlistBlock()->selectItemToAddToOrder($products[0], 1);
268263
$this->orderCreateIndex->getSidebarWishlistBlock()->selectItemToAddToOrder($products[2], 1);
269264
$this->orderCreateIndex->getBackendOrderSidebarBlock()->updateChangesClick();
270265
$createBlock->waitOrderItemsGrid();
271266
$this->assertItemsOrderedSectionContainsProducts->processAssert($this->orderCreateIndex, $products);
272267
$this->assertProductsIsPresentInCustomerBackendWishlist
273-
->processAssert(
274-
$customer,
275-
$this->customerIndexEdit,
276-
[$products[0], $products[2]]
277-
);
268+
->processAssert($customer, $this->customerIndexEdit, [$products[0], $products[2]]);
278269
$this->assertCartSectionIsEmptyOnBackendOrderPage->processAssert($this->orderCreateIndex);
279270
foreach ($products as $product) {
280271
$createBlock->getItemsBlock()->selectItemAction($product, 'Move to Shopping Cart');
281272
}
282273
$createBlock->updateItems();
283274
$this->assertItemsOrderedSectionOnBackendOrderIsEmpty->processAssert($this->orderCreateIndex);
284275
$this->assertProductsIsPresentInCustomerBackendWishlist
285-
->processAssert(
286-
$customer,
287-
$this->customerIndexEdit,
288-
[$products[0], $products[2]]
289-
);
276+
->processAssert($customer, $this->customerIndexEdit, [$products[0], $products[2]]);
290277
$this->assertCartSectionWithProductsOnBackendOrderPage->processAssert($this->orderCreateIndex, $products);
291278
foreach ([$products[0], $products[2]] as $product) {
292279
$this->orderCreateIndex->getBackendOrderSidebarBlock()->selectItemToAddToOrder($product);
@@ -298,11 +285,7 @@ public function test(
298285
[$products[0], $products[2]]
299286
);
300287
$this->assertProductsIsPresentInCustomerBackendWishlist
301-
->processAssert(
302-
$customer,
303-
$this->customerIndexEdit,
304-
[$products[0], $products[2]]
305-
);
288+
->processAssert($customer, $this->customerIndexEdit, [$products[0], $products[2]]);
306289
$this->assertCartSectionWithProductsOnBackendOrderPage->processAssert($this->orderCreateIndex, [$products[1]]);
307290
$this->stepFactory->create(
308291
\Magento\Sales\Test\TestStep\FillBillingAddressStep::class,

0 commit comments

Comments
 (0)