@@ -205,23 +205,6 @@ export const sidePanelOpenWithSingleItemSelected: Story = {
205205 } ,
206206} ;
207207
208- export const metadataViewV2WithBulkItemActionMenuShowsEllipsis : Story = {
209- args : metadataViewV2WithBulkItemActions ,
210- play : async ( { canvas } ) => {
211- await waitFor ( ( ) => {
212- expect ( canvas . getByRole ( 'row' , { name : / C h i l d 2 / i } ) ) . toBeInTheDocument ( ) ;
213- } ) ;
214-
215- const firstRow = canvas . getByRole ( 'row' , { name : / C h i l d 2 / i } ) ;
216- const checkbox = within ( firstRow ) . getByRole ( 'checkbox' ) ;
217- userEvent . click ( checkbox ) ;
218-
219- await waitFor ( ( ) => {
220- expect ( canvas . getByRole ( 'button' , { name : 'Bulk actions' } ) ) . toBeInTheDocument ( ) ;
221- } ) ;
222- } ,
223- } ;
224-
225208export const metadataViewV2WithBulkItemActionMenuShowsItemActionMenu : Story = {
226209 args : metadataViewV2WithBulkItemActions ,
227210 play : async ( { canvas } ) => {
@@ -247,37 +230,6 @@ export const metadataViewV2WithBulkItemActionMenuShowsItemActionMenu: Story = {
247230 } ,
248231} ;
249232
250- export const metadataViewV2WithBulkItemActionMenuCallsOnClick : Story = {
251- args : metadataViewV2WithBulkItemActions ,
252- play : async ( { canvas, args } ) => {
253- await waitFor ( ( ) => {
254- expect ( canvas . getByRole ( 'row' , { name : / C h i l d 2 / i } ) ) . toBeInTheDocument ( ) ;
255- } ) ;
256-
257- const firstRow = canvas . getByRole ( 'row' , { name : / C h i l d 2 / i } ) ;
258- const checkbox = within ( firstRow ) . getByRole ( 'checkbox' ) ;
259- userEvent . click ( checkbox ) ;
260-
261- await waitFor ( ( ) => {
262- expect ( canvas . getByRole ( 'button' , { name : 'Bulk actions' } ) ) . toBeInTheDocument ( ) ;
263- } ) ;
264-
265- const ellipsisButton = canvas . getByRole ( 'button' , { name : 'Bulk actions' } ) ;
266-
267- userEvent . click ( ellipsisButton ) ;
268-
269- await waitFor ( ( ) => {
270- expect ( screen . getByRole ( 'menuitem' , { name : 'Download' } ) ) . toBeInTheDocument ( ) ;
271- } ) ;
272- const downloadAction = screen . getByRole ( 'menuitem' , { name : 'Download' } ) ;
273- userEvent . click ( downloadAction ) ;
274-
275- await waitFor ( ( ) => {
276- expect ( args . bulkItemActions [ 0 ] . onClick ) . toHaveBeenCalled ( ) ;
277- } ) ;
278- } ,
279- } ;
280-
281233const meta : Meta < typeof ContentExplorer > = {
282234 title : 'Elements/ContentExplorer/tests/MetadataView/visual' ,
283235 component : ContentExplorer ,
0 commit comments