-
Notifications
You must be signed in to change notification settings - Fork 91
MFTF Automation for: User locates licensed and uploaded image inside Media Gallery #639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
8098028
Resolved issue #444
drpayyne 93e5c33
Issue-444 bug fix and code refactor
drpayyne 2b51b93
Made after node stateless
drpayyne cd7a897
Made MFTF test stateless
drpayyne 3e95f86
Resolved issue #444
drpayyne 454a146
Issue-444 bug fix and code refactor
drpayyne cb29fc6
Fixed incorrect selector
drpayyne dcf7453
Merge branch 'develop' of github.com:magento/adobe-stock-integration …
sivaschenko 2e87de2
magento/adobe-stock-integration#639: Fixed locate selector, reverted …
sivaschenko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
...eStockImageAdminUi/Test/Mftf/ActionGroup/AdminAdobeStockImagePreviewLocateActionGroup.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
|
||
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd"> | ||
<actionGroup name="AdminAdobeStockImagePreviewLocateActionGroup"> | ||
<click selector="{{AdobeStockImagePreviewSection.locateImage}}" stepKey="clickLocate"/> | ||
<waitForPageLoad stepKey="waitForMediaGalleryOpen"/> | ||
</actionGroup> | ||
</actionGroups> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
AdobeStockImageAdminUi/Test/Mftf/Test/AdminAdobeStockSavedLicensedImageLocateTest.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
|
||
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> | ||
<test name="AdminAdobeStockSavedLicensedImageLocateTest"> | ||
<annotations> | ||
<features value="AdobeStockImagePanel"/> | ||
<stories value="User locates licensed and uploaded image inside Media Gallery"/> | ||
<title value="Adobe Stock Saved Licensed Image Locate"/> | ||
<description value="User can locate previously licensed and saved image in Media Gallery"/> | ||
<severity value="CRITICAL"/> | ||
<group value="adobe_stock_integration_license"/> | ||
<group value="adobe_stock_integration"/> | ||
</annotations> | ||
<before> | ||
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> | ||
<actionGroup ref="AdminOpenMediaGalleryForPageNoEditorActionGroup" stepKey="openMediaGalleryForPage"/> | ||
<actionGroup ref="AdminAdobeStockOpenPanelFromMediaGalleryActionGroup" stepKey="openAdobeStockPanel"/> | ||
<actionGroup ref="AdminAdobeStockClickSignInActionGroup" stepKey="clickOnSignIn"/> | ||
<actionGroup ref="AdminAdobeStockImsPopupSignInFillUserDataActionGroup" stepKey="fillUserCredentials"/> | ||
<actionGroup ref="AdminAdobeStockImsPopupClickSignInActionGroup" stepKey="clickSignInImsPopup"/> | ||
<actionGroup ref="AdminAdobeStockAssertUserLoggedActionGroup" stepKey="assertUserLoggedIn"/> | ||
</before> | ||
<after> | ||
<actionGroup ref="AdminOpenMediaGalleryForPageNoEditorActionGroup" stepKey="openMediaGalleryForPage"/> | ||
<actionGroup ref="AdminAdobeStockOpenPanelFromMediaGalleryActionGroup" stepKey="openAdobeStockPanel"/> | ||
<actionGroup ref="AdminAdobeStockUserSignOutActionGroup" stepKey="adobeLogout"/> | ||
<actionGroup ref="AdminAdobeStockAssertUserNotLoggedActionGroup" stepKey="assertAdobeUserLoggedOut"/> | ||
<actionGroup ref="resetAdminDataGridToDefaultView" stepKey="resetAdminDataGridToDefaultView"/> | ||
<actionGroup ref="logout" stepKey="adminLogout"/> | ||
</after> | ||
<actionGroup ref="AdminSearchImagesOnModalActionGroup" stepKey="searchForLicensedImage"> | ||
<argument name="query" value="{{AdobeStockLicensedImage.id}}"/> | ||
</actionGroup> | ||
<actionGroup ref="AdminAdobeStockExpandImagePreviewActionGroup" stepKey="expandLicensedImage"/> | ||
<click selector="{{AdobeStockImagePreviewSection.saveLicensedImage}}" stepKey="clickSave"/> | ||
<waitForPageLoad stepKey="waitForPromptModal"/> | ||
<grabValueFrom selector="{{AdobeStockImagePreviewSection.imageNameField}}" stepKey="grabSaveImageFileName"/> | ||
<click selector="{{AdobeStockImagePreviewSection.confirm}}" stepKey="clickOnPopupConfirm"/> | ||
<waitForPageLoad stepKey="waitForMediaGalleryOpen"/> | ||
<seeElement selector="{{AdobeStockSection.mediaGalleryImage({$grabSaveImageFileName})}}" stepKey="imageSaved"/> | ||
<actionGroup ref="AdminAdobeStockOpenPanelFromMediaGalleryActionGroup" stepKey="openAdobeStockPanelAgain"/> | ||
<actionGroup ref="AdminAdobeStockImagePreviewLocateActionGroup" stepKey="locateImage"/> | ||
<seeElement selector="{{AdobeStockSection.mediaGalleryImage({$grabSaveImageFileName})}}" stepKey="imageLocated"/> | ||
<actionGroup ref="AdminMediaGalleryDeleteImage" stepKey="deleteImageActionGroup"> | ||
<argument name="name" value="{$grabSaveImageFileName}"/> | ||
</actionGroup> | ||
</test> | ||
</tests> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.