diff --git a/packages/console/src/components/Project/test/ProjectDashboard.test.tsx b/packages/console/src/components/Project/test/ProjectDashboard.test.tsx index f30a61dbf..592b104e7 100644 --- a/packages/console/src/components/Project/test/ProjectDashboard.test.tsx +++ b/packages/console/src/components/Project/test/ProjectDashboard.test.tsx @@ -155,11 +155,13 @@ describe('ProjectDashboard', () => { it('should display domain attributes section when config was provided', async () => { const { getByText } = renderView(); expect(getProjectDomainAttributes).toHaveBeenCalled(); - await waitFor(() => {}); - expect(getProjectAttributes).toHaveBeenCalled(); + await waitFor(() => { + expect(getProjectAttributes).toHaveBeenCalled(); + }); - await waitFor(() => {}); - expect(getByText('Domain Settings')).toBeInTheDocument(); + await waitFor(() => { + expect(getByText('Domain Settings')).toBeInTheDocument(); + }); expect( getByText('cliOutputLocationPrefixFromProjectAttributes'),