Nested folders: Empty state for nested folder picker (#71464)

* add empty state to nestedfolderpicker, add translations

* run i18n:extract

* rename i18n key

---------

Co-authored-by: joshhunt <josh@trtr.co>
This commit is contained in:
Ashley Harrison
2023-07-14 11:58:43 +01:00
committed by GitHub
parent 5654359813
commit 1caf3298ea
9 changed files with 79 additions and 19 deletions

View File

@@ -86,7 +86,7 @@ describe('NestedFolderPicker', () => {
expect(screen.queryByRole('button', { name: 'Select folder' })).not.toBeInTheDocument();
// Search input and folder tree are visible
expect(screen.getByPlaceholderText('Search folder')).toBeInTheDocument();
expect(screen.getByPlaceholderText('Search folders')).toBeInTheDocument();
expect(screen.getByLabelText('Dashboards')).toBeInTheDocument();
expect(screen.getByLabelText(folderA.item.title)).toBeInTheDocument();
expect(screen.getByLabelText(folderB.item.title)).toBeInTheDocument();