diff --git a/grafana-plugin/src/pages/outgoing_webhooks/OutgoingWebhooks.test.tsx b/grafana-plugin/src/pages/outgoing_webhooks/OutgoingWebhooks.test.tsx index c2c9f9f4..463b3256 100644 --- a/grafana-plugin/src/pages/outgoing_webhooks/OutgoingWebhooks.test.tsx +++ b/grafana-plugin/src/pages/outgoing_webhooks/OutgoingWebhooks.test.tsx @@ -57,10 +57,10 @@ describe('OutgoingWebhooks', () => { test('It renders all retrieved webhooks', async () => { render(); - const gTable = screen.queryByTestId('test__gTable'); - const rows = gTable.querySelectorAll('tbody tr'); - await waitFor(() => { + const gTable = screen.queryByTestId('test__gTable'); + const rows = gTable.querySelectorAll('tbody tr'); + expect(() => queryEditForm()).toThrow(); // edit doesn't show for [id=undefined] expect(rows.length).toBe(outgoingWebhooks.length); });