From 7c2f6c95a6e40e7424cdd62a6c87803101016da3 Mon Sep 17 00:00:00 2001 From: nixocio Date: Tue, 23 Feb 2021 16:02:13 -0500 Subject: [PATCH] Update variables as returned by useRequest Update variables to be consistent with variables returned by useRequest. --- awx/ui_next/src/components/Schedule/shared/ScheduleForm.jsx | 2 +- .../src/components/Schedule/shared/ScheduleForm.test.jsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/ui_next/src/components/Schedule/shared/ScheduleForm.jsx b/awx/ui_next/src/components/Schedule/shared/ScheduleForm.jsx index cbe1526331..e64eefbbff 100644 --- a/awx/ui_next/src/components/Schedule/shared/ScheduleForm.jsx +++ b/awx/ui_next/src/components/Schedule/shared/ScheduleForm.jsx @@ -223,7 +223,7 @@ function ScheduleForm({ const { request: loadScheduleData, error: contentError, - contentLoading, + isLoading: contentLoading, result: { zoneOptions, credentials }, } = useRequest( useCallback(async () => { diff --git a/awx/ui_next/src/components/Schedule/shared/ScheduleForm.test.jsx b/awx/ui_next/src/components/Schedule/shared/ScheduleForm.test.jsx index 508169ce3e..5455919ebc 100644 --- a/awx/ui_next/src/components/Schedule/shared/ScheduleForm.test.jsx +++ b/awx/ui_next/src/components/Schedule/shared/ScheduleForm.test.jsx @@ -447,6 +447,7 @@ describe('', () => { /> ); }); + await waitForElement(wrapper, 'ContentLoading', el => el.length === 0); }); afterAll(() => { wrapper.unmount();