File tree 3 files changed +69
-0
lines changed 3 files changed +69
-0
lines changed Original file line number Diff line number Diff line change
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
+ <pages xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Page/etc/PageObject.xsd" >
11
+ <page name =" StorefrontRssPage" url =" /rss/" area =" storefront" module =" Magento_Rss" >
12
+ <section name =" StorefrontRssListSection" />
13
+ </page >
14
+ </pages >
Original file line number Diff line number Diff line change
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
+ <sections xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Page/etc/SectionObject.xsd" >
11
+ <section name =" StorefrontRssListSection" >
12
+ <element name =" rssTable" type =" block" selector =" table.rss" />
13
+ <element name =" rssLink" type =" text" selector =" table.rss tr:nth-of-type(2) > td.action a" />
14
+ </section >
15
+ </sections >
Original file line number Diff line number Diff line change
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 =" RssTest" >
12
+ <annotations >
13
+ <group value =" Rss" />
14
+ <stories value =" RSS Feed available to view" />
15
+ <title value =" RSS Feed" />
16
+ <description value =" View selected RSS feed by link." />
17
+ <severity value =" MAJOR" />
18
+ </annotations >
19
+ <before >
20
+ <createData entity =" SimpleProductWithNewFromDate" stepKey =" createProduct" />
21
+ <magentoCLI command =" config:set rss/config/active 1" stepKey =" enableRss" />
22
+ <magentoCLI command =" config:set rss/catalog/new 1" stepKey =" enableRssForCatalogNewProducts" />
23
+ <magentoCLI command =" cache:clean" stepKey =" cleanCache" />
24
+ </before >
25
+ <after >
26
+ <deleteData createDataKey =" createProduct" stepKey =" deleteProduct" />
27
+ <magentoCLI command =" config:set rss/config/active 0" stepKey =" disableRss" />
28
+ <magentoCLI command =" config:set rss/catalog/new 0" stepKey =" disableRssForCatalogNewProducts" />
29
+ <magentoCLI command =" cache:clean" stepKey =" cleanCache" />
30
+ </after >
31
+
32
+ <amOnPage url =" {{StorefrontRssPage.url}}" stepKey =" goToRssPage" />
33
+ <seeElement selector =" {{StorefrontRssListSection.rssTable}}" stepKey =" seeRssList" />
34
+ <click selector =" {{StorefrontRssListSection.rssLink}}" stepKey =" clickRssLink" />
35
+ <seeInCurrentUrl url =" rss/feed/index/type/new_products/" stepKey =" seeInUrl" />
36
+ <waitForPageLoad stepKey =" waitForPageLoad" />
37
+ <see userInput =" New Products from Main Website Store" stepKey =" seeText" />
38
+
39
+ </test >
40
+ </tests >
You can’t perform that action at this time.
0 commit comments