Skip to content

Commit b25ddb5

Browse files
committed
MC-5723: Flaky MFTF Map Tests - Google Maps Rate Limit Reached
- Fix MapDefaultState test
1 parent ee72521 commit b25ddb5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/code/Magento/PageBuilder/Test/Mftf/Section/PageBuilderMapSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@
107107
<element name="cancelButton" type="button" selector="aside.pagebuilder_map_form_pagebuilder_map_form_general_map_location_modal button#cancel"/>
108108
<element name="editFormSave" type="button" selector="aside.pagebuilder_map_form_pagebuilder_map_form_general_map_location_modal button#save"/>
109109
<element name="base" type="button" selector="//div[@data-index='position']//div[@class='map-field']"/>
110+
<element name="baseError" type="button" selector="//div[@data-index='position']//div[@class='google-map-auth-failure-placeholder']"/>
110111
<element name="baseJS" type="text" selector="document.querySelector('div[data-index=\'position\'] div.map-field')"/>
111112
<element name="clickablePin" type="button" selector="//div[@data-index='position']//div[@class='map-field']//map//area"/>
112113
<element name="allPins" type="button" selector="//div[@data-index='position']//div[@class='map-field']//img[not(@usemap) and contains(@src,'spotlight-poi2_hdpi.png')]|//div[@data-index='position']//div[@class='map-field']//img[not(@usemap) and contains(@src,'spotlight-poi2.png')]"/>

app/code/Magento/PageBuilder/Test/Mftf/Test/AdminPageBuilderMapCommonComponentTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
<actionGroup ref="validateSlideOutPanelField" stepKey="seePositionAttribute2">
134134
<argument name="property" value="PageBuilderMapPositionDefaultProperty"/>
135135
</actionGroup>
136-
<seeElement selector="{{AddLocationForm.base}}" stepKey="seeMap2"/>
136+
<seeElement selector="{{AddLocationForm.baseError}}" stepKey="seeMap2WithError"/>
137137
<actionGroup ref="validateMapHelperText" stepKey="validateMapHelperText2"/>
138138
<actionGroup ref="seeInFieldSlideOutProperty" stepKey="seeLocationNameValue2">
139139
<argument name="property" value="PageBuilderMapLocationName_Default"/>

0 commit comments

Comments
 (0)