betodealmeida commented on a change in pull request #16763:
URL: https://github.com/apache/superset/pull/16763#discussion_r714212268



##########
File path: superset-frontend/src/views/CRUD/chart/ChartList.test.jsx
##########
@@ -190,7 +190,7 @@ describe('RTL', () => {
   });
 
   it('renders an "Import Chart" tooltip under import button', async () => {
-    const importButton = screen.getByTestId('import-button');
+    const importButton = await screen.findByTestId('import-button');

Review comment:
       We now need to wait til the permissions are fetched in `useEffect()`.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to