mirror of
https://github.com/apache/superset.git
synced 2026-04-22 09:35:23 +00:00
fix: show Import button only if has perms (#16763)
* fix: show Import button only if has perms * Fix tests
This commit is contained in:
@@ -211,7 +211,7 @@ describe('RTL', () => {
|
||||
});
|
||||
|
||||
it('renders an "Import Database" tooltip under import button', async () => {
|
||||
const importButton = screen.getByTestId('import-button');
|
||||
const importButton = await screen.findByTestId('import-button');
|
||||
userEvent.hover(importButton);
|
||||
|
||||
await screen.findByRole('tooltip');
|
||||
|
||||
Reference in New Issue
Block a user