@@ -35,30 +35,14 @@ class CustomerForm extends FormTabs
35
35
*
36
36
* @var string
37
37
*/
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")] ' ;
46
39
47
40
/**
48
41
* Field wrapper with control block on form.
49
42
*
50
43
* @var string
51
44
*/
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")] ' ;
62
46
63
47
/**
64
48
* Fill Customer forms on tabs by customer, addresses data.
@@ -150,11 +134,7 @@ protected function waitFields()
150
134
{
151
135
/* Wait for field label is visible in the form */
152
136
$ 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 );
155
137
/* Wait for field's control block is visible in the form */
156
138
$ 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 );
159
139
}
160
140
}
0 commit comments