diff --git a/SAS/TMSS/frontend/tmss_webapp/src/routes/Scheduling/create.test.js b/SAS/TMSS/frontend/tmss_webapp/src/routes/Scheduling/create.test.js index 5db0872b198ec94f54070bbe582d30fafcf8ff70..e5064ebd949d6f38d43d5722fb58f046bec39193 100644 --- a/SAS/TMSS/frontend/tmss_webapp/src/routes/Scheduling/create.test.js +++ b/SAS/TMSS/frontend/tmss_webapp/src/routes/Scheduling/create.test.js @@ -164,7 +164,13 @@ it(" 1. renders SU create page with all fields and default values", async() => { const suSetInputEl = content.getAllByRole("listbox")[1].children[0] ; fireEvent.click(suSetInputEl); - expect(content.queryAllByText("Test Scheduling Set").length).toBe(1); + expect(content.queryAllByText("Test Scheduling Set").length).toBe(1); + + //Check the presence of Reference pointing constraint fields + expect(screen.getByLabelText("specification[sky][reference_pointing][pointing][angle1]")).toBeInTheDocument(); + expect(screen.getByLabelText("specification[sky][reference_pointing][pointing][angle2]")).toBeInTheDocument(); + expect(screen.getByText("J2000")).toBeInTheDocument(); + expect(screen.getByLabelText("specification[sky][reference_pointing][pointing][target]")).toBeInTheDocument(); expect(content.queryByTestId('save-btn')).toHaveAttribute("disabled"); });