Skip to content

Commit fe4d91a

Browse files
author
valdislav
committed
MAGETWO-35141: Sequence component pull request processing
1 parent 10189f2 commit fe4d91a

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

dev/tests/functional/tests/app/Magento/Backend/Test/Constraint/AssertStoreCanBeLocalized.php

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use Magento\Mtf\Constraint\AbstractConstraint;
1111
use Magento\Backend\Test\Page\Adminhtml\SystemConfig;
1212
use Magento\Cms\Test\Page\CmsIndex;
13+
use Magento\Backend\Test\Page\Adminhtml\AdminCache;
1314

1415
/**
1516
* Assert that store can be localized.
@@ -26,8 +27,14 @@ class AssertStoreCanBeLocalized extends AbstractConstraint
2627
* @param string $welcomeText
2728
* @return void
2829
*/
29-
public function processAssert(SystemConfig $systemConfig, Store $store, CmsIndex $cmsIndex, $locale, $welcomeText)
30-
{
30+
public function processAssert(
31+
SystemConfig $systemConfig,
32+
Store $store,
33+
CmsIndex $cmsIndex,
34+
AdminCache $adminCache,
35+
$locale,
36+
$welcomeText
37+
) {
3138
// Set locale options
3239
$systemConfig->open();
3340
$systemConfig->getPageActions()->selectStore($store->getGroupId() . "/" . $store->getName());
@@ -37,6 +44,11 @@ public function processAssert(SystemConfig $systemConfig, Store $store, CmsIndex
3744
$systemConfig->getPageActions()->save();
3845
$systemConfig->getMessagesBlock()->waitSuccessMessage();
3946

47+
// Flush cache
48+
$adminCache->open();
49+
$adminCache->getActionsBlock()->flushMagentoCache();
50+
$adminCache->getMessagesBlock()->waitSuccessMessage();
51+
4052
// Check presents income text on index page
4153
$cmsIndex->open();
4254
$cmsIndex->getStoreSwitcherBlock()->selectStoreView($store->getName());

0 commit comments

Comments
 (0)