Nested folders: update delete modal title to just be "Delete" (#68999)
update delete modal title to just be "Delete"
This commit is contained in:
@@ -28,7 +28,7 @@ describe('browse-dashboards DeleteModal', () => {
|
||||
it('renders a dialog with the correct title', async () => {
|
||||
render(<DeleteModal {...defaultProps} />);
|
||||
|
||||
expect(await screen.findByRole('dialog', { name: 'Delete Compute Resources' })).toBeInTheDocument();
|
||||
expect(await screen.findByRole('dialog', { name: 'Delete' })).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('displays a `Delete` button', async () => {
|
||||
|
||||
@@ -34,7 +34,7 @@ export const DeleteModal = ({ onConfirm, onDismiss, selectedItems, ...props }: P
|
||||
confirmText="Delete"
|
||||
onDismiss={onDismiss}
|
||||
onConfirm={onDelete}
|
||||
title="Delete Compute Resources"
|
||||
title="Delete"
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user