File tree Expand file tree Collapse file tree 5 files changed +61
-1
lines changed
app/code/Magento/Cms/Test/Mftf
CmsNewBlockBlockActionsSection
CmsNewBlockBlockBasicFieldsSection Expand file tree Collapse file tree 5 files changed +61
-1
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
+ <actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
9
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
10
+ <actionGroup name =" AdminCreateNewCMSBlockActionGroup" >
11
+ <amOnPage url =" {{CmsNewBlock.url}}" stepKey =" amNewCMSBlockPage" />
12
+ <waitForPageLoad stepKey =" waitForBlockPageLoad" />
13
+ <fillField selector =" {{BlockNewPageBasicFieldsSection.blockTitle}}" userInput =" {{_defaultBlock.title}}" stepKey =" fillFieldTitle1" />
14
+ <fillField selector =" {{BlockNewPageBasicFieldsSection.identifier}}" userInput =" {{_defaultBlock.identifier}}" stepKey =" fillFieldIdentifier" />
15
+ <selectOption selector =" {{BlockNewPageBasicFieldsSection.storeView}}" userInput =" All Store View" stepKey =" selectAllStoreView" />
16
+ <click selector =" {{BlockContentSection.showEditor}}" stepKey =" showEditor" />
17
+ <fillField selector =" {{BlockContentSection.TextArea}}" userInput =" {{_defaultBlock.content}}" stepKey =" fillContentField" />
18
+ <click selector =" {{BlockNewPagePageActionsSection.saveBlock}}" stepKey =" saveBlock" />
19
+ <waitForPageLoad stepKey =" waitForBlockSave" />
20
+ <waitForElementVisible selector =" {{AdminMessagesSection.success}}" stepKey =" waitForSuccessMessageAppear" />
21
+ <see userInput =" You saved the block." selector =" {{AdminMessagesSection.success}}" stepKey =" assertSaveBlockSuccessMessage" />
22
+ </actionGroup >
23
+ </actionGroups >
Original file line number Diff line number Diff line change 14
14
<element name =" checkbox" type =" checkbox" selector =" //label[@class='data-grid-checkbox-cell-inner']//input[@class='admin__control-checkbox']" />
15
15
<element name =" select" type =" select" selector =" //tr[@class='data-row']//button[@class='action-select']" />
16
16
<element name =" editInSelect" type =" text" selector =" //a[contains(text(), 'Edit')]" />
17
+ <element name =" addNewBlock" type =" text" selector =" //button[@title='Add New Block']" />
18
+ <element name =" blockEditPage" type =" text" selector =" //div[contains(text(),'{{blockTitle}}')]" parameterized =" true" />
17
19
</section >
18
20
</sections >
Original file line number Diff line number Diff line change 11
11
<element name =" TextArea" type =" input" selector =" #cms_block_form_content" />
12
12
<element name =" image" type =" file" selector =" #tinymce img" />
13
13
<element name =" contentIframe" type =" iframe" selector =" cms_block_form_content_ifr" />
14
+ <element name =" showEditor" type =" text" selector =" //button[@id='togglecms_block_form_content']" />
14
15
</section >
15
16
</sections >
Original file line number Diff line number Diff line change 9
9
xsi:noNamespaceSchemaLocation=" urn:magento:mftf:Page/etc/SectionObject.xsd" >
10
10
<section name =" BlockNewPageBasicFieldsSection" >
11
11
<element name =" isActive" type =" button" selector =" //input[@name='is_active' and @value='{{var1}}']" parameterized =" true" />
12
- <element name =" blockTitle" type =" input" selector =" input[name=title]" />
12
+ <element name =" blockTitle" type =" input" selector =" // input[@ name=' title' ]" />
13
13
<element name =" identifier" type =" input" selector =" input[name=identifier]" />
14
14
<element name =" storeView" type =" multiselect" selector =" select[name=store_id]" />
15
15
<element name =" duplicatedIdentifier" type =" input" selector =" //input[contains(@data-value,'{{var1}}')]" parameterized =" true" />
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
+ <tests xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
9
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/testSchema.xsd" >
10
+ <test name =" AdminGoToBlockEditPageAfterClickBlockOnGridTest" >
11
+ <annotations >
12
+ <features value =" Cms" />
13
+ <stories value =" Go to CMS Block Edit Page" />
14
+ <title value =" Go to CMS Block Edit Page after choosing block on the grid." />
15
+ <description value =" Go to CMS Block Edit Page after choosing block on the grid." />
16
+ <severity value =" MINOR" />
17
+ </annotations >
18
+ <before >
19
+ <actionGroup ref =" AdminLoginActionGroup" stepKey =" login" />
20
+ </before >
21
+ <after >
22
+ <actionGroup ref =" DeleteCMSBlockActionGroup" stepKey =" removeBlock" />
23
+ <actionGroup ref =" AdminLogoutActionGroup" stepKey =" logout" />
24
+ </after >
25
+
26
+ <actionGroup ref =" AdminCreateNewCMSBlockActionGroup" stepKey =" addNewBlock" />
27
+
28
+ <amOnPage url =" {{CmsBlocksPage.url}}" stepKey =" navigateBlockGrid" />
29
+ <waitForPageLoad stepKey =" waitForBlockGridLoad" />
30
+ <click selector =" {{AdminBlockGridSection.blockEditPage(_defaultBlock.title)}}" stepKey =" navigateToBlockEditPage" />
31
+ <waitForPageLoad stepKey =" waitForBlockEditPageLoad" />
32
+ <seeInCurrentUrl url =" cms/block/edit/block_id/" stepKey =" seeInBlockEditPage" />
33
+ </test >
34
+ </tests >
You can’t perform that action at this time.
0 commit comments