Nested folders: update delete modal title to just be "Delete" (#68999)

update delete modal title to just be "Delete"
This commit is contained in:
Ashley Harrison 2023-05-25 11:07:02 +01:00 committed by GitHub
parent 65e2df7a2e
commit 6613610f07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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 () => {

View File

@ -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}
/>
);