How to fix You gave screen a query of type "query" but only "find" or "get" queries can be used with asynchronous assertions in React | DevErrors