Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ describe('<ResourceList />', () => {
});

describe('BulkActions', () => {
it('renders on initial load when items are selected', () => {
it('renders on initial load when items are selected and bulkActions are present', () => {
const resourceList = mountWithApp(
<ResourceList
items={singleItemWithID}
Expand All @@ -951,6 +951,18 @@ describe('<ResourceList />', () => {
expect(resourceList).toContainReactComponentTimes(BulkActions, 1);
});

it('renders on initial load when items are selected and promotedBulkActions are present', () => {
const resourceList = mountWithApp(
<ResourceList
items={singleItemWithID}
renderItem={renderItem}
promotedBulkActions={promotedBulkActions}
selectedItems={['1']}
/>,
);
expect(resourceList).toContainReactComponentTimes(BulkActions, 1);
});

it('enables select mode when items are programmatically selected', () => {
const resourceList = mountWithApp(
<ResourceList
Expand Down