File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
dev/tests/functional/tests/app/Magento/CatalogRule/Test/Block/Adminhtml/Promo/Catalog/Edit Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 15
15
*/
16
16
class PromoForm extends FormSections
17
17
{
18
+ /**
19
+ * Magento form loader.
20
+ *
21
+ * @var string
22
+ */
23
+ protected $ spinner = '[data-role="spinner"] ' ;
24
+
18
25
/**
19
26
* Fill form with tabs.
20
27
*
@@ -25,6 +32,7 @@ class PromoForm extends FormSections
25
32
*/
26
33
public function fill (FixtureInterface $ fixture , SimpleElement $ element = null , array $ replace = null )
27
34
{
35
+ $ this ->waitPageToLoad ();
28
36
$ sections = $ this ->getFixtureFieldsByContainers ($ fixture );
29
37
if ($ replace ) {
30
38
$ sections = $ this ->prepareData ($ sections , $ replace );
@@ -55,4 +63,15 @@ protected function prepareData(array $tabs, array $replace)
55
63
56
64
return $ tabs ;
57
65
}
66
+
67
+ /**
68
+ * Wait page to load.
69
+ *
70
+ * @return void
71
+ */
72
+ protected function waitPageToLoad ()
73
+ {
74
+ $ this ->waitForElementVisible ($ this ->header );
75
+ $ this ->waitForElementNotVisible ($ this ->spinner );
76
+ }
58
77
}
You can’t perform that action at this time.
0 commit comments