Nested folders: Create basic Move/Delete modals (#67140)

* add modal scaffolding

* add some unit tests

* remove dummy api, add some TODO comments

* small test refactor

* another small test refactor

* fix unit tests due to aria-label/data-testid change
This commit is contained in:
Ashley Harrison
2023-04-25 17:08:40 +01:00
committed by GitHub
parent bb66f14c1d
commit e6e741546f
20 changed files with 436 additions and 61 deletions
@@ -68,7 +68,7 @@ describe('SelectedLogsGroups', () => {
await waitFor(() =>
expect(screen.getByText('Are you sure you want to clear all log groups?')).toBeInTheDocument()
);
await waitFor(() => userEvent.click(screen.getByLabelText('Confirm Modal Danger Button')));
await waitFor(() => userEvent.click(screen.getByRole('button', { name: 'Yes' })));
expect(defaultProps.onChange).toHaveBeenCalledWith([]);
});
});