Skip to content

Commit 7e6c9c0

Browse files
committed
Merge branch '466-flush-static-files-cache-button-visibility-test' of github.com:Leandry/magento-functional-tests-migration into 2.3-develop
2 parents 53ae1a8 + dd8d34e commit 7e6c9c0

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

app/code/Magento/PageCache/Test/Mftf/Section/AdminCacheManagementSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,6 @@
3030
<element name="pageCacheCheckbox" type="checkbox" selector="input[value='full_page']"/>
3131
<element name="webServicesConfigCheckbox" type="checkbox" selector="input[value='config_webservice']"/>
3232
<element name="translationsCheckbox" type="checkbox" selector="input[value='translate']"/>
33+
<element name="additionalCacheButton" type="button" selector="//*[@id='container']//button[contains(., '{{cacheType}}')]" parameterized="true" />
3334
</section>
3435
</sections>
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
11+
<test name="FlushStaticFilesCacheButtonVisibilityTest">
12+
<annotations>
13+
<features value="PageCache"/>
14+
<title value="Check visibility of flush static files cache button"/>
15+
<description value="Flush Static Files Cache button visibility"/>
16+
<severity value="MAJOR"/>
17+
<stories value="Check flush static files cache button"/>
18+
<group value="production_mode_only"/>
19+
<group value="pagecache"/>
20+
<group value="mtf_migrated"/>
21+
</annotations>
22+
<before>
23+
<!-- Log in to Admin Panel -->
24+
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
25+
</before>
26+
27+
<!-- Open Cache Management page -->
28+
<amOnPage url="{{AdminCacheManagementPage.url}}" stepKey="amOnPageCacheManagement"/>
29+
<waitForPageLoad stepKey="waitForPageCacheManagementLoad"/>
30+
31+
<!-- Check 'Flush Static Files Cache' not visible in production mode. -->
32+
<dontSee selector="{{AdminCacheManagementSection.additionalCacheButton('Flush Static Files Cache')}}" stepKey="dontSeeFlushStaticFilesButton" />
33+
</test>
34+
</tests>

0 commit comments

Comments
 (0)