Skip to content

Commit e458ef3

Browse files
author
Hwashiang Yu
committed
Merge remote-tracking branch 'origin/MC-10833-typescript-errors' into MC-5810
2 parents 05335ee + 6be330a commit e458ef3

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

app/code/Magento/PageBuilder/Test/Mftf/ActionGroup/ContentTypeMapActionGroup.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,9 +405,12 @@
405405
</arguments>
406406
<waitForElementVisible selector="{{section.warningMessageLink('1')}}" stepKey="waitForWarningMessageLink"/>
407407
<click selector="{{section.warningMessageLink('1')}}" stepKey="clickLink"/>
408+
<waitForPageLoad stepKey="waitForLinkClick"/>
409+
<switchToNextTab stepKey="switchToOpenedLink" />
408410
<waitForPageLoad stepKey="waitForPageLoad"/>
409411
<seeInCurrentUrl url="{{AdminContentManagementPage.url}}#cms_pagebuilder" stepKey="validateURL"/>
410412
<seeElement selector="{{ContentManagementSection.GoogleMapsAPIKeyInputField}}" stepKey="seeGoogleMapsAPIKeyInputField"/>
413+
<closeTab stepKey="closeOpenedTab" />
411414
</actionGroup>
412415
<actionGroup name="validateAdvancedStyleWithAllUpdatedMapWithErrorOverlay" extends="validateAdvancedStyleWithAllUpdatedNotVisible">
413416
<waitForElementVisible selector="{{page.warningMessageLink(index)}}" stepKey="dontSeeElement"/>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
<actionGroup ref="dragContentTypeToDropZone" stepKey="dragRowToStage">
9898
<argument name="contentType" value="PageBuilderRowContentType"/>
9999
<argument name="contentTypeIndex" value="2"/>
100-
<argument name="containerTargetType" value="PageBuilderStage"/>
100+
<argument name="containerTargetType" value="PageBuilderRootContainerContentType"/>
101101
<argument name="dropZoneIndex" value="2"/>
102102
</actionGroup>
103103
<!-- Edit 2nd Row -->

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@
132132
<actionGroup ref="validateWarningMessageLink" stepKey="validateWarningMessageLink1">
133133
<argument name="section" value="MapOnStage"/>
134134
</actionGroup>
135+
<waitForPageLoad stepKey="waitForPageLoad1"/>
136+
<actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage2"/>
135137
<!-- Edit Form: Validate Warning Message Link -->
136138
<comment userInput="Edit Form: Validate Warning Message Link" stepKey="commentValidateWarningMessageLinkEditForm"/>
137139
<actionGroup ref="openPageBuilderEditPanel" stepKey="openEditPanel1">
@@ -140,14 +142,8 @@
140142
<actionGroup ref="validateWarningMessageLink" stepKey="validateWarningMessageLink2">
141143
<argument name="section" value="EditMapForm"/>
142144
</actionGroup>
143-
<moveBack stepKey="moveBack2"/>
144145
<waitForPageLoad stepKey="waitForPageLoad2"/>
145-
<actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage3"/>
146146
<!-- Location Form: Validate Warning Message Link -->
147-
<comment userInput="Location Form: Validate Warning Message Link" stepKey="commentValidateWarningMessageLinkLocationForm"/>
148-
<actionGroup ref="openPageBuilderEditPanel" stepKey="openEditPanel2">
149-
<argument name="contentType" value="PageBuilderMapContentType"/>
150-
</actionGroup>
151147
<actionGroup ref="clickAddLocationButton" stepKey="clickAddLocationButton"/>
152148
<actionGroup ref="validateWarningMessageLink" stepKey="validateWarningMessageLink3">
153149
<argument name="section" value="AddLocationForm"/>

app/code/Magento/PageBuilder/view/adminhtml/ui_component/pagebuilder_map_form.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
<item name="additionalClasses" xsi:type="string">message message-warning</item>
7272
<item name="visible" xsi:type="boolean">false</item>
7373
<item name="map_configuration_url" xsi:type="string">adminhtml/system_config/edit/section/cms</item>
74-
<item name="content" xsi:type="string" translate="true"><![CDATA[You must provide a valid <a href="%s">Google Maps API key</a> to use a map.]]></item>
74+
<item name="content" xsi:type="string" translate="true"><![CDATA[You must provide a valid <a href="%s" target="_blank">Google Maps API key</a> to use a map.]]></item>
7575
</item>
7676
</argument>
7777
</container>

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
"version": "100.0.0-dev",
44
"description": "PageBuilder module",
55
"scripts": {
6-
"test:static": "npm run ts:errors && tslint --project tsconfig.json",
7-
"test:static:log": "npm run test:static -- -o ./static-error-log.xml -t junit",
6+
"test:static": "tslint --project tsconfig.json",
7+
"test:static:log": "set -o pipefail; npm run test:static | tee tslint-errors.txt",
88
"ts:errors": "tsc --noEmit",
9+
"test:errors:log": "set -o pipefail; npm run ts:errors | tee tsc-errors.txt",
910
"ts:errors:watch": "npm run ts:errors -- -watch",
1011
"ts:lint": "tslint --fix --project .",
1112
"ts:defs": "node ./dev/dts-generator.js",

0 commit comments

Comments
 (0)