Skip to content

Commit c929a81

Browse files
committed
MAGETWO-33053: MTF Configuration pull request
1 parent 2cdea6f commit c929a81

File tree

1 file changed

+9
-2
lines changed
  • dev/tests/functional/tests/app/Magento/Customer/Test/Block/Adminhtml/Edit

1 file changed

+9
-2
lines changed

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ class CustomerForm extends FormTabs
5151
*/
5252
protected $fieldWrapperControl = './/*[contains(@class, "form__field")]/*[contains(@class,"control")]';
5353

54+
/**
55+
* Table with customer information
56+
*
57+
* @var string
58+
*/
59+
protected $dataTable = '.data-table';
60+
5461
// @codingStandardsIgnoreStart
5562
/**
5663
* Field wrapper with absent control block on form.
@@ -94,7 +101,7 @@ public function fillCustomer(FixtureInterface $customer, $address = null)
94101
public function updateCustomer(FixtureInterface $customer, $address = null)
95102
{
96103
$this->waitForm();
97-
$this->waitFields();
104+
$this->waitForElementVisible($this->dataTable);
98105

99106
$isHasData = ($customer instanceof InjectableFixture) ? $customer->hasData() : true;
100107
if ($isHasData) {
@@ -118,7 +125,7 @@ public function updateCustomer(FixtureInterface $customer, $address = null)
118125
public function getDataCustomer(FixtureInterface $customer, $address = null)
119126
{
120127
$this->waitForm();
121-
$this->waitFields();
128+
$this->waitForElementVisible($this->dataTable);
122129

123130
$data = ['customer' => $customer->hasData() ? parent::getData($customer) : parent::getData()];
124131
if (null !== $address) {

0 commit comments

Comments
 (0)