Skip to content

Commit b322ae2

Browse files
authored
Merge pull request #120 from magento-cia/cia-pre-release-develop-sync-02162024
Cia pre release develop sync 02162024
2 parents cb95561 + ba22bee commit b322ae2

15 files changed

+48
-7
lines changed

AdobeStockImage/Test/Mftf/Test/StorefrontAdobeStockIntegrationApiSwaggerActionsExistTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<severity value="CRITICAL"/>
1818
<group value="developer_mode_only"/>
1919
<skip>
20-
<issueId value="ACQE-4803">To be converted to WebApi test</issueId>
20+
<issueId value="ACQE-4803">To be converted to WebApi test. This test should not be in adobe-stock-integration. It contains references that originate in the security-package repository. The test should be moved out of this repository when it is replaced by an integration test</issueId>
2121
</skip>
2222
</annotations>
2323
<before>

AdobeStockImageAdminUi/Test/Mftf/ActionGroup/AdminAdobeStockClickLicenseActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1010
<actionGroup name="AdminAdobeStockClickLicenseActionGroup">
1111
<click selector="{{AdminAdobeStockImagePreviewSection.saveLicensedImage}}" stepKey="clickOnSavePreview"/>
12-
<waitForElementVisible selector="{{AdminAdobeStockImagePreviewSection.confirm}}" stepKey="waitForConfirmationModal"/>
12+
<waitForElementClickable selector="{{AdminAdobeStockImagePreviewSection.confirm}}" stepKey="waitForConfirmationModal"/>
1313
<click selector="{{AdminAdobeStockImagePreviewSection.confirm}}" stepKey="clickConfirmButton"/>
1414
<waitForPageLoad stepKey="waitForMaskDisappeared"/>
1515
</actionGroup>

AdobeStockImageAdminUi/Test/Mftf/ActionGroup/AdminDeleteAdobeStockImagePreviewActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1111
<actionGroup name="AdminDeleteSelectedAdobeStockImagePreviewActionGroup">
1212
<click selector="{{AdminAdobeStockSection.deleteMediaButton}}" stepKey="clickDeleteMedia"/>
13-
<waitForElementVisible selector="{{AdminAdobeStockImagePreviewSection.confirm}}" stepKey="waitForConfirmationModal"/>
13+
<waitForElementClickable selector="{{AdminAdobeStockImagePreviewSection.confirm}}" stepKey="waitForConfirmationModal"/>
1414
<click selector="{{AdminAdobeStockImagePreviewSection.confirm}}" stepKey="clickConfirmButton"/>
1515
<waitForPageLoad stepKey="waitForDeletionPageLoad"/>
1616
</actionGroup>

AdobeStockImageAdminUi/Test/Mftf/ActionGroup/AdminMediaGalleryDeleteImageActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
stepKey="clickImageToDeleteAgain"/>
2222
<waitForElementVisible selector="{{AdminAdobeStockSection.mediaGalleryDeleteButton}}" stepKey="waitForDeleteButton"/>
2323
<click selector="{{AdminAdobeStockSection.mediaGalleryDeleteButton}}" stepKey="clickDeleteButton"/>
24-
<waitForElementVisible selector="{{AdminAdobeStockImagePreviewSection.confirm}}" stepKey="waitForConfirmationModal"/>
24+
<waitForElementClickable selector="{{AdminAdobeStockImagePreviewSection.confirm}}" stepKey="waitForConfirmationModal"/>
2525
<click selector="{{AdminAdobeStockImagePreviewSection.confirm}}" stepKey="clickConfirmButton"/>
2626
<waitForPageLoad stepKey="waitForMaskDisappeared"/>
2727
<dontSeeElement selector="{{AdminAdobeStockSection.mediaGalleryImage(name)}}" stepKey="assertImageIsDeleted"/>

AdobeStockImageAdminUi/Test/Mftf/ActionGroup/AdminSaveAdobeStockImagePreviewActionGroup.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
</arguments>
1515
<waitForElementVisible selector="{{AdminAdobeStockSaveImagePreviewSection.name}}" time="30" stepKey="waitForInputVisible"/>
1616
<fillField selector="{{AdminAdobeStockSaveImagePreviewSection.name}}" userInput="{{name}}" stepKey="setImageName"/>
17+
<waitForElementClickable selector="{{AdminAdobeStockImagePreviewSection.confirm}}" stepKey="waitForConfirmButtonClickable"/>
1718
<click selector="{{AdminAdobeStockImagePreviewSection.confirm}}" stepKey="confirmSavingThePreview"/>
1819
<waitForPageLoad stepKey="waitForImagePreviewToSave"/>
20+
<dontSeeElementInDOM selector="{{AdminAdobeStockImagePreviewSection.errorMessage}}" stepKey="verifyNoErrorMessage"/>
1921
</actionGroup>
2022
</actionGroups>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* ADOBE CONFIDENTIAL
5+
*
6+
* Copyright 2024 Adobe
7+
* All Rights Reserved.
8+
*
9+
* NOTICE: All information contained herein is, and remains
10+
* the property of Adobe and its suppliers, if any. The intellectual
11+
* and technical concepts contained herein are proprietary to Adobe
12+
* and its suppliers and are protected by all applicable intellectual
13+
* property laws, including trade secret and copyright laws.
14+
* Dissemination of this information or reproduction of this material
15+
* is strictly forbidden unless prior written permission is obtained
16+
* from Adobe.
17+
*/
18+
-->
19+
20+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
22+
<actionGroup name="AdminSaveAdobeStockImagePreviewAndDontCheckForErrorActionGroup" extends="AdminSaveAdobeStockImagePreviewActionGroup">
23+
<remove keyForRemoval="verifyNoErrorMessage"/>
24+
</actionGroup>
25+
</actionGroups>

AdobeStockImageAdminUi/Test/Mftf/ActionGroup/AdminSaveAdobeStockLicensedImageActionGroup.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1111
<actionGroup name="AdminSaveAdobeStockLicensedImageActionGroup">
12-
<waitForElementVisible selector="{{AdminAdobeStockSaveImagePreviewSection.name}}" time="30" stepKey="waitForInputVisible"/>
12+
<waitForElementClickable selector="{{AdminAdobeStockSaveImagePreviewSection.name}}" time="30" stepKey="waitForInputVisible"/>
1313
<click selector="{{AdminAdobeStockImagePreviewSection.confirm}}" stepKey="confirmSavingLicensed"/>
14-
<waitForLoadingMaskToDisappear stepKey="waitForImageToSave"/>
14+
<waitForPageLoad stepKey="waitForImageToSave"/>
1515
</actionGroup>
1616
</actionGroups>

AdobeStockImageAdminUi/Test/Mftf/Section/AdminAdobeStockImagePreviewSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,6 @@
3636
<element name="moreFromThisSeriesSeeMore" selector="//div[@aria-labelledby='series_tab']//div[@class='see-more-wrapper']" type="button"/>
3737
<element name="seeMoreFromSeriesImages" type="block" selector="//*[@id='adobe-stock-images-search-modal']//div[@class='see-more-wrapper']"/>
3838
<element name="imagePreviewTitle" type="text" selector=".preview-row-content .title"/>
39+
<element name="errorMessage" type="text" selector="//div[@data-ui-id='messages-message-error']"/>
3940
</section>
4041
</sections>

AdobeStockImageAdminUi/Test/Mftf/Test/AdminAdobeStockImagePreviewLocateTest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@
5656
<actionGroup ref="AdminAdobeStockSavePreviewActionGroup" stepKey="clickSavePreviewButton"/>
5757
<comment userInput="BIC workaround" stepKey="waitForPromptModal"/>
5858
<grabValueFrom selector="{{AdminAdobeStockImagePreviewSection.imageNameField}}" stepKey="grabImageFileName"/>
59+
<waitForElementClickable selector="{{AdminAdobeStockImagePreviewSection.confirm}}" stepKey="waitForConfirmButtonClickable"/>
5960
<click selector="{{AdminAdobeStockImagePreviewSection.confirm}}" stepKey="clickOnPopupConfirm"/>
6061
<waitForPageLoad stepKey="waitForMediaGalleryOpen"/>
62+
<dontSeeElementInDOM selector="{{AdminAdobeStockImagePreviewSection.errorMessage}}" stepKey="verifyNoErrorMessage"/>
6163
<waitForElementVisible selector="{{AdminAdobeStockSection.mediaGalleryImage({$grabImageFileName})}}" stepKey="assertSavedImage"/>
6264
<actionGroup ref="AdminAdobeStockOpenPanelFromMediaGalleryActionGroup" stepKey="openAdobeStockPanelAgain"/>
6365
<actionGroup ref="AdminAdobeStockImagePreviewLocateActionGroup" stepKey="locateImage"/>

AdobeStockImageAdminUi/Test/Mftf/Test/AdminAdobeStockListingStateTest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,10 @@
6161
<actionGroup ref="AdminAdobeStockSavePreviewActionGroup" stepKey="clickSavePreview"/>
6262
<comment userInput="BIC workaround" stepKey="waitForPromptModal"/>
6363
<grabValueFrom selector="{{AdminAdobeStockImagePreviewSection.imageNameField}}" stepKey="grabImageFileName"/>
64+
<waitForElementClickable selector="{{AdminAdobeStockImagePreviewSection.confirm}}" stepKey="waitForConfirmButtonClickable"/>
6465
<click selector="{{AdminAdobeStockImagePreviewSection.confirm}}" stepKey="clickOnPopupConfirm"/>
6566
<waitForPageLoad stepKey="waitForMediaGalleryOpen" />
67+
<dontSeeElementInDOM selector="{{AdminAdobeStockImagePreviewSection.errorMessage}}" stepKey="verifyNoErrorMessage"/>
6668
<waitForElementVisible selector="{{AdminAdobeStockSection.mediaGalleryImage({$grabImageFileName})}}" stepKey="assertSavedImage"/>
6769
<actionGroup ref="AdminAdobeStockOpenPanelFromMediaGalleryActionGroup" stepKey="openAdobeStockPanel"/>
6870
<actionGroup ref="AssertAdminAdobeStockCurrentPageNumberActionGroup" stepKey="seeSecondPage">

0 commit comments

Comments
 (0)