Skip to content

Commit 7320544

Browse files
committed
MTA-2144: Maintain functional tests
- Fixed fill customer addresses step
1 parent d1b383c commit 7320544

File tree

3 files changed

+3
-22
lines changed

3 files changed

+3
-22
lines changed

dev/tests/functional/tests/app/Magento/Customer/Test/Block/Adminhtml/Edit/CustomerForm.php

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,6 @@ class CustomerForm extends FormTabs
4444
*/
4545
protected $fieldWrapperControl = './/*[contains(@class, "admin__field")]/*[contains(@class,"control")]';
4646

47-
/**
48-
* Selector for wainting tab content to load.
49-
*
50-
* @var string
51-
*/
52-
protected $tabReadiness = 'div:not([style="display: none;"])>.admin__fieldset-wrapper.opened > [class*=content]';
53-
5447
/**
5548
* Fill Customer forms on tabs by customer, addresses data.
5649
*
@@ -144,18 +137,4 @@ protected function waitFields()
144137
/* Wait for field's control block is visible in the form */
145138
$this->waitForElementVisible($this->fieldWrapperControl, Locator::SELECTOR_XPATH);
146139
}
147-
148-
/**
149-
* Open tab.
150-
*
151-
* @param string $tabName
152-
* @return CustomerForm
153-
*/
154-
public function openTab($tabName)
155-
{
156-
parent::openTab($tabName);
157-
$this->waitForElementVisible($this->tabReadiness);
158-
159-
return $this;
160-
}
161140
}

dev/tests/functional/tests/app/Magento/Customer/Test/TestStep/LoginCustomerOnFrontendStep.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ public function run()
8080
$this->cmsIndex->getLinksBlock()->openLink("Log In");
8181
$this->cmsIndex->getCmsPageBlock()->waitPageInit();
8282
$this->customerAccountLogin->getLoginBlock()->login($this->customer);
83+
$this->cmsIndex->getCmsPageBlock()->waitPageInit();
8384
}
8485

8586
/**

dev/tests/functional/tests/app/Magento/Multishipping/Test/TestStep/FillCustomerAddressesStep.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,11 @@ public function __construct(
7171
*/
7272
public function run()
7373
{
74+
$addresses = $this->customer->getDataFieldConfig('address')['source']->getAddresses();
7475
$bindings = [];
76+
7577
foreach ($this->products as $key => $product) {
7678
$productName = $product->getName();
77-
$addresses = $this->customer->getDataFieldConfig('address')['source']->getAddresses();
7879
$addressRender = $this->objectManeger->create(
7980
'\Magento\Customer\Test\Block\Address\Renderer',
8081
['address' => $addresses[$key], 'type' => 'oneline']

0 commit comments

Comments
 (0)