File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
dev/tests/functional/tests/app/Magento/Install/Test/Block Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 6
6
namespace Magento \Install \Test \Block ;
7
7
8
8
use Mtf \Block \Form ;
9
+ use Mtf \Client \Element \SimpleElement ;
9
10
use Mtf \Client \Locator ;
11
+ use Mtf \Fixture \FixtureInterface ;
10
12
11
13
/**
12
14
* Customize Your Store block.
@@ -20,6 +22,13 @@ class CustomizeStore extends Form
20
22
*/
21
23
protected $ next = "[ng-click*='next'] " ;
22
24
25
+ /**
26
+ * First field selector
27
+ *
28
+ * @var string
29
+ */
30
+ protected $ firstField = '[ng-model*="language"] ' ;
31
+
23
32
/**
24
33
* Click on 'Next' button.
25
34
*
@@ -29,4 +38,17 @@ public function clickNext()
29
38
{
30
39
$ this ->_rootElement ->find ($ this ->next , Locator::SELECTOR_CSS )->click ();
31
40
}
41
+
42
+ /**
43
+ * Ensure the form is loaded and fill the root form
44
+ *
45
+ * @param FixtureInterface $fixture
46
+ * @param SimpleElement|null $element
47
+ * @return $this
48
+ */
49
+ public function fill (FixtureInterface $ fixture , SimpleElement $ element = null )
50
+ {
51
+ $ this ->waitForElementVisible ($ this ->firstField );
52
+ return parent ::fill ($ fixture , $ element );
53
+ }
32
54
}
You can’t perform that action at this time.
0 commit comments