Skip to content

Commit a19c765

Browse files
author
Dmytro Aponasenko
committed
MAGETWO-32250: Header
- fixed customer wait form
1 parent f54eb02 commit a19c765

File tree

1 file changed

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

1 file changed

+2
-22
lines changed

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

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -35,30 +35,14 @@ class CustomerForm extends FormTabs
3535
*
3636
* @var string
3737
*/
38-
protected $fieldLabel = './/*[contains(@class, "form__field")]/*[contains(@class,"label")]';
39-
40-
/**
41-
* Field wrapper with absent label on form.
42-
*
43-
* @var string
44-
*/
45-
protected $fieldLabelAbsent = './/*[contains(@class, "form__field") and not(./*[contains(@class,"label")]/*)]';
38+
protected $fieldLabel = './/*[contains(@class, "admin__field")]/*[contains(@class,"label")]';
4639

4740
/**
4841
* Field wrapper with control block on form.
4942
*
5043
* @var string
5144
*/
52-
protected $fieldWrapperControl = './/*[contains(@class, "form__field")]/*[contains(@class,"control")]';
53-
54-
// @codingStandardsIgnoreStart
55-
/**
56-
* Field wrapper with absent control block on form.
57-
*
58-
* @var string
59-
*/
60-
protected $fieldWrapperControlAbsent = './/*[contains(@class, "form__field") and not(./input or ./*[contains(@class,"control")]/*)]';
61-
// @codingStandardsIgnoreEnd
45+
protected $fieldWrapperControl = './/*[contains(@class, "admin__field")]/*[contains(@class,"control")]';
6246

6347
/**
6448
* Fill Customer forms on tabs by customer, addresses data.
@@ -150,11 +134,7 @@ protected function waitFields()
150134
{
151135
/* Wait for field label is visible in the form */
152136
$this->waitForElementVisible($this->fieldLabel, Locator::SELECTOR_XPATH);
153-
/* Wait for render all field's labels(assert that absent field without label) in the form */
154-
$this->waitForElementNotVisible($this->fieldLabelAbsent, Locator::SELECTOR_XPATH);
155137
/* Wait for field's control block is visible in the form */
156138
$this->waitForElementVisible($this->fieldWrapperControl, Locator::SELECTOR_XPATH);
157-
/* Wait for render all field's control blocks(assert that absent field without control block) in the form */
158-
$this->waitForElementNotVisible($this->fieldWrapperControlAbsent, Locator::SELECTOR_XPATH);
159139
}
160140
}

0 commit comments

Comments
 (0)