Skip to content

Commit a2e269a

Browse files
committed
#637: Form field/field group viewport scope - initial commit for functional tests adding new action groups and section
1 parent 7fd3bfe commit a2e269a

File tree

3 files changed

+47
-0
lines changed

3 files changed

+47
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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="ValidateMobileIconTooltipInContentTypeEditFormActionGroup">
11+
<waitForElementVisible selector="{{PageBuilderViewportFormSection.mobileIcon}}" stepKey="verifyMobileIconInEditFormIsVisible"/>
12+
<moveMouseOver selector="{{PageBuilderViewportFormSection.mobileIconTooltip}}" stepKey="mouseOverMobileIconTooltipInEditForm"/>
13+
<waitForElementVisible selector="{{PageBuilderViewportFormSection.mobileIconTooltipContent}}" stepKey="verifyMobileIconTooltipContentInEditFormIsVisible"/>
14+
<waitForText userInput="Style changes will only affect this breakpoint" stepKey="verifyMobileIconTooltipTextInEditForm"/>
15+
</actionGroup>
16+
</actionGroups>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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="ValidateMobileIconTooltipNotVisibleInEditFormActionGroup">
11+
<dontSeeElementInDOM selector="{{PageBuilderViewportFormSection.mobileIcon}}" stepKey="verifyMobileIconInEditFormIsNotVisible"/>
12+
<dontSeeElementInDOM selector="{{PageBuilderViewportFormSection.mobileIconTooltipContent}}" stepKey="verifyMobileIconTooltipContentInEditFormIsNotVisible"/>
13+
</actionGroup>
14+
</actionGroups>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
10+
<section name="PageBuilderViewportFormSection">
11+
<!-- Mobile Icon -->
12+
<element name="mobileIcon" type="text" selector="//div[contains(@class,'admin__field-min-height')]//div[contains(@class,'_with-tooltip')]//div[contains(@class,'admin__field-tooltip')]//a[contains(@class,'admin__field-tooltip-action')]"/>
13+
<!-- Mobile Icon Tooltip -->
14+
<element name="mobileIconTooltip" type="text" selector="//div[contains(@class,'admin__field-min-height')]//div[contains(@class,'_with-tooltip')]//div[contains(@class,'admin__field-tooltip')]"/>
15+
<element name="mobileIconTooltipContent" type="text" selector="//div[contains(@class,'admin__field-min-height')]//div[contains(@class,'_with-tooltip')]//div[contains(@class,'admin__field-tooltip')]//div[contains(@class,'admin__field-tooltip-content')]"/>
16+
</section>
17+
</sections>

0 commit comments

Comments
 (0)