Skip to content

Commit ee72521

Browse files
committed
MC-5723: Flaky MFTF Map Tests - Google Maps Rate Limit Reached
- Fix error message in small columns
1 parent 9e768dc commit ee72521

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/css/source/_google-map.less

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@
1010
.google-map-auth-failure-placeholder {
1111
align-items: center;
1212
background: @color-pagebuilder-lighter-gray;
13-
color: @entity-background-color;
1413
display: flex;
1514
height: 100%;
1615
justify-content: center;
1716
width: 100%;
1817

19-
a {
20-
margin: 0 3px;
18+
p {
19+
color: @entity-background-color;
20+
margin-bottom: 0;
21+
max-width: 80%;
22+
text-align: center;
2123
}
2224
}

app/code/Magento/PageBuilder/view/adminhtml/web/template/content-type/map/default/preview.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
-->
77

88
<div class="pagebuilder-content-type pagebuilder-map" event="{ mouseover: onMouseOver, mouseout: onMouseOut }, mouseoverBubble: false">
9-
<div visible="!apiKeyValid()" class="google-map-auth-failure-placeholder" html="apiKeyErrorMessage"></div>
9+
<div visible="!apiKeyValid()" class="google-map-auth-failure-placeholder"><p html="apiKeyErrorMessage"></p></div>
1010
<div visible="apiKeyValid" attr="data.main.attributes" css="data.main.css" ko-style="data.main.style" afterRender="renderMap"></div>
1111
<render args="getOptions().template" />
1212
</div>

app/code/Magento/PageBuilder/view/adminhtml/web/template/form/element/map.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
-->
77

88
<div class="admin__field admin__field-map">
9-
<div visible="!apiKeyValid()" class="google-map-auth-failure-placeholder" html="apiKeyErrorMessage"></div>
9+
<div visible="!apiKeyValid()" class="google-map-auth-failure-placeholder"><p html="apiKeyErrorMessage"></p></div>
1010
<div visible="apiKeyValid" class="map-field" afterRender="renderMap"></div>
1111
<div attr="id: uid, name: inputName">
1212
<input type="text" ko-value="value().longitude" attr="name: inputName + '.longitude'"/>

0 commit comments

Comments
 (0)