Skip to content
Snippets Groups Projects
Commit a19c7656 authored by Dmytro Aponasenko's avatar Dmytro Aponasenko
Browse files

MAGETWO-32250: Header

- fixed customer wait form
parent f54eb020
Branches
No related merge requests found
...@@ -35,30 +35,14 @@ class CustomerForm extends FormTabs ...@@ -35,30 +35,14 @@ class CustomerForm extends FormTabs
* *
* @var string * @var string
*/ */
protected $fieldLabel = './/*[contains(@class, "form__field")]/*[contains(@class,"label")]'; protected $fieldLabel = './/*[contains(@class, "admin__field")]/*[contains(@class,"label")]';
/**
* Field wrapper with absent label on form.
*
* @var string
*/
protected $fieldLabelAbsent = './/*[contains(@class, "form__field") and not(./*[contains(@class,"label")]/*)]';
/** /**
* Field wrapper with control block on form. * Field wrapper with control block on form.
* *
* @var string * @var string
*/ */
protected $fieldWrapperControl = './/*[contains(@class, "form__field")]/*[contains(@class,"control")]'; protected $fieldWrapperControl = './/*[contains(@class, "admin__field")]/*[contains(@class,"control")]';
// @codingStandardsIgnoreStart
/**
* Field wrapper with absent control block on form.
*
* @var string
*/
protected $fieldWrapperControlAbsent = './/*[contains(@class, "form__field") and not(./input or ./*[contains(@class,"control")]/*)]';
// @codingStandardsIgnoreEnd
/** /**
* Fill Customer forms on tabs by customer, addresses data. * Fill Customer forms on tabs by customer, addresses data.
...@@ -150,11 +134,7 @@ class CustomerForm extends FormTabs ...@@ -150,11 +134,7 @@ class CustomerForm extends FormTabs
{ {
/* Wait for field label is visible in the form */ /* Wait for field label is visible in the form */
$this->waitForElementVisible($this->fieldLabel, Locator::SELECTOR_XPATH); $this->waitForElementVisible($this->fieldLabel, Locator::SELECTOR_XPATH);
/* Wait for render all field's labels(assert that absent field without label) in the form */
$this->waitForElementNotVisible($this->fieldLabelAbsent, Locator::SELECTOR_XPATH);
/* Wait for field's control block is visible in the form */ /* Wait for field's control block is visible in the form */
$this->waitForElementVisible($this->fieldWrapperControl, Locator::SELECTOR_XPATH); $this->waitForElementVisible($this->fieldWrapperControl, Locator::SELECTOR_XPATH);
/* Wait for render all field's control blocks(assert that absent field without control block) in the form */
$this->waitForElementNotVisible($this->fieldWrapperControlAbsent, Locator::SELECTOR_XPATH);
} }
} }
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment