10 use Magento\Sales\Test\Page\Adminhtml\OrderCreateIndex;
11 use Magento\Mtf\TestStep\TestStepInterface;
63 if ($this->giftMessage->getAllowGiftMessagesForOrder() ===
'Yes') {
64 $giftMessageForOrderBlock = $this->orderCreateIndex->getGiftMessageForOrderBlock();
65 $giftMessageForOrderBlock->fill($this->giftMessage);
66 $giftMessageForOrderBlock->waitForElementNotVisible(
'.loading-mask');
68 if ($this->giftMessage->getAllowGiftOptionsForItems() ===
'Yes') {
69 $giftMessageBlock = $this->orderCreateIndex->getCreateGiftMessageBlock();
70 $giftMessageBlock->fillGiftMessageForItems($this->products, $this->giftMessage);
71 $giftMessageBlock->waitForElementNotVisible(
'.loading-mask');
__construct(OrderCreateIndex $orderCreateIndex, GiftMessage $giftMessage, array $products=[])