File tree 3 files changed +13
-7
lines changed
app/code/Magento/MediaGalleryUi
view/adminhtml/web/js/grid/massaction
3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 12
12
<annotations >
13
13
<description >Asserts that massaction mode is terminated</description >
14
14
</annotations >
15
-
16
15
16
+ <dontSeeElement selector =" {{AdminMediaGalleryHeaderButtonsSection.addSelected}}" stepKey =" verifyAddSelectedButtonNotVisible" />
17
17
<dontSeeElement selector =" {{AdminEnhancedMediaGalleryMassActionSection.totalSelected}}" stepKey =" verifyTeminateMassAction" />
18
18
</actionGroup >
19
19
</actionGroups >
Original file line number Diff line number Diff line change 19
19
<group value =" media_gallery_ui" />
20
20
</annotations >
21
21
<before >
22
+ <createData entity =" SimpleSubCategory" stepKey =" category" />
22
23
<actionGroup ref =" AdminLoginActionGroup" stepKey =" loginAsAdmin" />
23
- <actionGroup ref =" AdminOpenStandaloneMediaGalleryActionGroup" stepKey =" openMediaGallery" />
24
+ <actionGroup ref =" AdminOpenCategoryPageActionGroup" stepKey =" openCategoryPage" />
25
+ <actionGroup ref =" AdminCategoriesOpenCategoryActionGroup" stepKey =" openCategory" >
26
+ <argument name =" category" value =" $$category$$" />
27
+ </actionGroup >
28
+ <actionGroup ref =" AdminOpenMediaGalleryFromCategoryImageUploaderActionGroup" stepKey =" openMediaGalleryFromWysiwyg" />
24
29
</before >
30
+ <after >
31
+ <deleteData createDataKey =" category" stepKey =" deleteCategory" />
32
+ </after >
25
33
<actionGroup ref =" AdminEnhancedMediaGalleryUploadImageActionGroup" stepKey =" uploadImage" >
26
34
<argument name =" image" value =" ImageUpload" />
27
35
</actionGroup >
34
42
<argument name =" imageName" value =" {{ImageUpload.fileName}}" />
35
43
</actionGroup >
36
44
<actionGroup ref =" AdminEnhancedMediaGalleryDisableMassactionModeActionGroup" stepKey =" disableMassActionMode" />
37
-
45
+
38
46
<actionGroup ref =" AdminEnhancedMediaGalleryEnableMassActionModeActionGroup" stepKey =" enableMassActionToDeleteImages" />
39
47
<actionGroup ref =" AdminEnhancedMediaGallerySelectImageForMassActionActionGroup" stepKey =" selectFirstImageToDelete" >
40
48
<argument name =" imageName" value =" {{ImageUpload.fileName}}" />
Original file line number Diff line number Diff line change @@ -141,10 +141,8 @@ define([
141
141
if ( response . status === 'canceled' ) {
142
142
return ;
143
143
}
144
- this . imageModel ( ) . selected ( { } ) ;
145
- this . massActionMode ( false ) ;
146
- this . switchMode ( ) ;
147
- } . bind ( this ) ) ;
144
+ $ ( window ) . trigger ( 'terminateMassAction.MediaGallery' ) ;
145
+ } ) ;
148
146
}
149
147
} . bind ( this ) ) ;
150
148
}
You can’t perform that action at this time.
0 commit comments