File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
dev/tests/functional/tests/app/Magento/Setup/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 @@ -30,6 +30,13 @@ class SelectVersion extends Form
30
30
*/
31
31
protected $ firstField = '#selectVersion ' ;
32
32
33
+ /**
34
+ * Show all versions checkbox
35
+ *
36
+ * @var string
37
+ */
38
+ private $ showAllVersions = '#showUnstable ' ;
39
+
33
40
/**
34
41
* Click on 'Next' button.
35
42
*
@@ -50,9 +57,24 @@ public function clickNext()
50
57
public function fill (FixtureInterface $ fixture , SimpleElement $ element = null )
51
58
{
52
59
$ this ->waitForElementVisible ($ this ->firstField );
60
+ $ this ->chooseShowAllVersions ();
61
+
53
62
return parent ::fill ($ fixture , $ element );
54
63
}
55
64
65
+ /**
66
+ * Show all versions include unstable
67
+ *
68
+ * @return void
69
+ */
70
+ private function chooseShowAllVersions ()
71
+ {
72
+ $ element = $ this ->_rootElement ->find ($ this ->showAllVersions , Locator::SELECTOR_CSS );
73
+ if ($ element ->isVisible ()) {
74
+ $ element ->click ();
75
+ }
76
+ }
77
+
56
78
/**
57
79
* Choose 'yes' for upgrade option called 'Other components'
58
80
*
You can’t perform that action at this time.
0 commit comments