|
9 | 9 | <tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
10 | 10 | <test name="AdminMediaGalleryAssertUsedInLinkPagesGridTest"> |
11 | 11 | <annotations> |
12 | | - <skip> |
13 | | - <issueId value="https://github.com/magento/adobe-stock-integration/issues/1825"/> |
14 | | - </skip> |
15 | 12 | <features value="AdminMediaGalleryUsedInBlocksFilter"/> |
16 | 13 | <useCaseId value="https://github.com/magento/adobe-stock-integration/issues/1168"/> |
17 | 14 | <title value="Used in pages link"/> |
|
24 | 21 | <before> |
25 | 22 | <actionGroup ref="AdminLoginActionGroup" stepKey="login"/> |
26 | 23 | </before> |
| 24 | + <after> |
| 25 | + <actionGroup ref="AdminOpenStandaloneMediaGalleryActionGroup" stepKey="openMediaGallery"/> |
| 26 | + <actionGroup ref="ResetAdminDataGridToDefaultViewActionGroup" stepKey="resetAdminDataGridToDefaultViewAgain"/> |
| 27 | + <actionGroup ref="AdminMediaGalleryFolderSelectActionGroup" stepKey="selectFolder"> |
| 28 | + <argument name="name" value="pageTestImage"/> |
| 29 | + </actionGroup> |
| 30 | + <actionGroup ref="AdminMediaGalleryFolderDeleteActionGroup" stepKey="deleteFolder"/> |
| 31 | + <actionGroup ref="AdminMediaGalleryAssertFolderDoesNotExistActionGroup" stepKey="assertFolderWasDeleted"> |
| 32 | + <argument name="name" value="pageTestImage"/> |
| 33 | + </actionGroup> |
| 34 | + </after> |
27 | 35 | <actionGroup ref="AdminOpenCreateNewCMSPageActionGroup" stepKey="navigateToCreateNewPage"/> |
28 | 36 | <actionGroup ref="FillOutCustomCMSPageContentActionGroup" stepKey="fillBasicPageDataForPageWithDefaultStore"> |
29 | 37 | <argument name="title" value="Unique page title MediaGalleryUi"/> |
|
32 | 40 | </actionGroup> |
33 | 41 |
|
34 | 42 | <actionGroup ref="AdminOpenMediaGalleryFromPageNoEditorActionGroup" stepKey="openMediaGalleryForPage"/> |
35 | | - <waitForPageLoad stepKey="waitForPageLoad" /> |
| 43 | + <actionGroup ref="ClearFiltersAdminDataGridActionGroup" stepKey="clearFilter"/> |
| 44 | + <wait time="5" stepKey="waitFilterReallyCleared"/> |
| 45 | + <actionGroup ref="AdminMediaGalleryOpenNewFolderFormActionGroup" stepKey="openNewFolderForm"/> |
| 46 | + <actionGroup ref="AdminMediaGalleryCreateNewFolderActionGroup" stepKey="createNewFolder"> |
| 47 | + <argument name="name" value="pageTestImage"/> |
| 48 | + </actionGroup> |
| 49 | + <actionGroup ref="AdminMediaGalleryAssertFolderNameActionGroup" stepKey="assertNewFolderCreated"> |
| 50 | + <argument name="name" value="pageTestImage"/> |
| 51 | + </actionGroup> |
| 52 | + <waitForPageLoad stepKey="waitForGridToLoadAfterNewFolderCreated"/> |
36 | 53 | <actionGroup ref="AdminEnhancedMediaGalleryUploadImageActionGroup" stepKey="uploadImage"> |
37 | 54 | <argument name="image" value="ImageUpload3"/> |
38 | 55 | </actionGroup> |
39 | | - <actionGroup ref="AdminEnhancedMediaGalleryViewImageDetails" stepKey="viewImageDetails"/> |
40 | | - <actionGroup ref="AdminEnhancedMediaGalleryImageDetailsEditActionGroup" stepKey="editImage"/> |
41 | | - <actionGroup ref="AdminEnhancedMediaGalleryImageDetailsSaveActionGroup" stepKey="saveImage"> |
42 | | - <argument name="image" value="UpdatedImageDetails"/> |
| 56 | + <actionGroup ref="AdminMediaGalleryClickImageInGridActionGroup" stepKey="selectContentImageInGrid"> |
| 57 | + <argument name="imageName" value="{{ImageMetadata.title}}"/> |
43 | 58 | </actionGroup> |
44 | | - <actionGroup ref="AdminEnhancedMediaGalleryCloseViewDetailsActionGroup" stepKey="closeViewDetails"/> |
45 | | - |
46 | 59 | <actionGroup ref="AdminMediaGalleryClickAddSelectedActionGroup" stepKey="clickAddSelectedContentImage"/> |
47 | | - <click selector="{{CmsNewPagePageActionsSection.saveAndContinueEdit}}" stepKey="savePage"/> |
| 60 | + <waitForPageLoad stepKey="waitForPageLoad10" /> |
| 61 | + <waitForElementVisible selector="{{CmsNewPagePageActionsSection.saveAndContinueEdit}}" stepKey="waitForSaveButtonVisible"/> |
| 62 | + <click selector="{{CmsNewPagePageActionsSection.expandSplitButton}}" stepKey="expandButtonMenu"/> |
| 63 | + <click selector="{{CmsNewPagePageActionsSection.savePage}}" stepKey="savePage"/> |
| 64 | + <waitForPageLoad stepKey="waitForSaveToFinish"/> |
| 65 | + <see userInput="You saved the page." stepKey="seeSuccessMessage"/> |
48 | 66 | <actionGroup ref="AdminOpenStandaloneMediaGalleryActionGroup" stepKey="openStandaloneMediaGallery"/> |
| 67 | + <actionGroup ref="ResetAdminDataGridToDefaultViewActionGroup" stepKey="resetAdminDataGridToDefaultView"/> |
| 68 | + <actionGroup ref="AdminMediaGalleryFolderSelectActionGroup" stepKey="selectFolder"> |
| 69 | + <argument name="name" value="pageTestImage"/> |
| 70 | + </actionGroup> |
49 | 71 | <actionGroup ref="AdminEnhancedMediaGalleryViewImageDetails" stepKey="openViewImageDetails"/> |
50 | 72 | <actionGroup ref="AdminEnhancedMediaGalleryClickEntityUsedInActionGroup" stepKey="clickUsedInPages"> |
51 | 73 | <argument name="entityName" value="Pages"/> |
52 | 74 | </actionGroup> |
53 | 75 | <actionGroup ref="AdminAssertMediaGalleryFilterPlaceHolderGridActionGroup" stepKey="assertFilterApplied"> |
54 | | - <argument name="filterPlaceholder" value="{{UpdatedImageDetails.title}}"/> |
| 76 | + <argument name="filterPlaceholder" value="{{ImageMetadata.title}}"/> |
55 | 77 | </actionGroup> |
56 | 78 | <actionGroup ref="AdminDeleteCmsPageFromGridActionGroup" stepKey="deleteCmsPage"> |
57 | 79 | <argument name="urlKey" value="test-page-1"/> |
58 | 80 | </actionGroup> |
| 81 | + <actionGroup ref="ClearFiltersAdminDataGridActionGroup" stepKey="clearFiltersInPageGrid"/> |
59 | 82 | <actionGroup ref="AdminOpenStandaloneMediaGalleryActionGroup" stepKey="openMediaGallery"/> |
60 | | - <actionGroup ref="AdminEnhancedMediaGalleryViewImageDetails" stepKey="openViewImageDetailsToVerfifyEmptyUsedIn"/> |
| 83 | + <actionGroup ref="ResetAdminDataGridToDefaultViewActionGroup" stepKey="resetAdminDataGridToDefaultViewAgain"/> |
| 84 | + <actionGroup ref="AdminMediaGalleryFolderSelectActionGroup" stepKey="selectFolderAgain"> |
| 85 | + <argument name="name" value="pageTestImage"/> |
| 86 | + </actionGroup> |
| 87 | + <actionGroup ref="AdminEnhancedMediaGalleryViewImageDetails" stepKey="openViewImageDetailsToVerifyEmptyUsedIn"/> |
61 | 88 | <actionGroup ref="AssertAdminEnhancedMediaGalleryUsedInSectionNotDisplayedActionGroup" stepKey="assertThereIsNoUsedInSection"/> |
62 | 89 | <actionGroup ref="AdminEnhancedMediaGalleryCloseViewDetailsActionGroup" stepKey="closeDetails"/> |
63 | | - |
64 | | - <actionGroup ref="AdminEnhancedMediaGalleryEnableMassActionModeActionGroup" stepKey="enableMassActionToDeleteImages"/> |
65 | | - <actionGroup ref="AdminEnhancedMediaGallerySelectImageForMassActionActionGroup" stepKey="selectFirstImageToDelete"> |
66 | | - <argument name="imageName" value="{{UpdatedImageDetails.title}}"/> |
67 | | - </actionGroup> |
68 | | - <actionGroup ref="AdminEnhancedMediaGalleryClickDeleteImagesButtonActionGroup" stepKey="clikDeleteSelectedButton"/> |
69 | | - <actionGroup ref="AdminEnhancedMediaGalleryConfirmDeleteImagesActionGroup" stepKey="deleteImages"/> |
70 | | - |
71 | 90 | </test> |
72 | 91 | </tests> |
0 commit comments