File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
polaris-react/src/components/ResourceList/tests Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -939,7 +939,7 @@ describe('<ResourceList />', () => {
939
939
} ) ;
940
940
941
941
describe ( 'BulkActions' , ( ) => {
942
- it ( 'renders on initial load when items are selected' , ( ) => {
942
+ it ( 'renders on initial load when items are selected and bulkActions are present ' , ( ) => {
943
943
const resourceList = mountWithApp (
944
944
< ResourceList
945
945
items = { singleItemWithID }
@@ -951,6 +951,18 @@ describe('<ResourceList />', () => {
951
951
expect ( resourceList ) . toContainReactComponentTimes ( BulkActions , 1 ) ;
952
952
} ) ;
953
953
954
+ it ( 'renders on initial load when items are selected and promotedBulkActions are present' , ( ) => {
955
+ const resourceList = mountWithApp (
956
+ < ResourceList
957
+ items = { singleItemWithID }
958
+ renderItem = { renderItem }
959
+ promotedBulkActions = { promotedBulkActions }
960
+ selectedItems = { [ '1' ] }
961
+ /> ,
962
+ ) ;
963
+ expect ( resourceList ) . toContainReactComponentTimes ( BulkActions , 1 ) ;
964
+ } ) ;
965
+
954
966
it ( 'enables select mode when items are programmatically selected' , ( ) => {
955
967
const resourceList = mountWithApp (
956
968
< ResourceList
You can’t perform that action at this time.
0 commit comments