10 use Magento\Customer\Test\Fixture\Address;
11 use Magento\Mtf\Client\Locator;
12 use Magento\Mtf\Fixture\FixtureInterface;
13 use Magento\Mtf\Fixture\InjectableFixture;
25 protected $spinner =
'#container [data-role="spinner"]';
39 protected $fieldLabel =
'.//*[contains(@class, "admin__field")]/*[contains(@class,"label")]';
60 protected $information =
'.//th[contains(text(), "%s")]/following-sibling::td[1]';
101 if ($addressToDelete !==
null) {
103 $this->
getTab(
'addresses')->deleteCustomerAddress($addressToDelete);
124 $data = [
'customer' => $customer->hasData() ? parent::getData(
$customer) : parent::getData()];
140 $this->waitForElementNotVisible($this->spinner);
151 parent::openTab($tabName);
152 $this->waitForElementNotVisible($this->tabReadiness);
164 $tabs = [
'account_information',
'addresses'];
166 foreach ($tabs as $tabName) {
167 $tab = $this->
getTab($tabName);
169 $jsErrors = array_merge($jsErrors, $tab->getJsErrors());
182 return $this->_rootElement
183 ->find(sprintf($this->information,
$title), Locator::SELECTOR_XPATH)