fix: show Import button only if has perms (#16763)

* fix: show Import button only if has perms

* Fix tests
This commit is contained in:
Beto Dealmeida
2021-09-23 14:55:21 -07:00
committed by GitHub
parent 4086bedb68
commit 6921d94861
9 changed files with 60 additions and 57 deletions

View File

@@ -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');