Skip to content

Commit 9a89564

Browse files
committed
MAGETWO-57569: [Backport] Functional upgrade test fail 2.1.x --> 2.2.x - 2.2
- Add showing unstable versions during system upgrade test
1 parent f13d577 commit 9a89564

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

dev/tests/functional/tests/app/Magento/Setup/Test/Block/SelectVersion.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ class SelectVersion extends Form
3030
*/
3131
protected $firstField = '#selectVersion';
3232

33+
/**
34+
* Show all versions checkbox
35+
*
36+
* @var string
37+
*/
38+
private $showAllVersions = '#showUnstable';
39+
3340
/**
3441
* Click on 'Next' button.
3542
*
@@ -50,9 +57,24 @@ public function clickNext()
5057
public function fill(FixtureInterface $fixture, SimpleElement $element = null)
5158
{
5259
$this->waitForElementVisible($this->firstField);
60+
$this->chooseShowAllVersions();
61+
5362
return parent::fill($fixture, $element);
5463
}
5564

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+
5678
/**
5779
* Choose 'yes' for upgrade option called 'Other components'
5880
*

0 commit comments

Comments
 (0)