webpack/scenes/ContentViews/Delete/__tests__/contentViewDelete.test.js in katello-4.7.0 vs webpack/scenes/ContentViews/Delete/__tests__/contentViewDelete.test.js in katello-4.7.1

- old
+ new

@@ -163,11 +163,11 @@ .get(cVDropDownOptionsPath) .times(2) .reply(200, cVDropDownOptionsData); const { - getByText, getByLabelText, getAllByLabelText, getAllByText, queryByText, + getByText, getByLabelText, getAllByLabelText, getAllByText, queryByText, getByPlaceholderText, } = renderWithRedux(<ContentViewsPage />, renderOptions); expect(queryByText(firstCV.name)).toBeNull(); // Assert that the CV name is now showing on the screen, but wait for it to appear. await patientlyWaitFor(() => expect(queryByText(firstCV.name)).toBeInTheDocument()); @@ -189,13 +189,13 @@ expect(getByText('affectedHost.example.com')).toBeInTheDocument(); }); fireEvent.click(getByLabelText('test1')); await patientlyWaitFor(() => { expect(getByText('Select content view')).toBeInTheDocument(); - expect(getByText('Select a content view')).toBeInTheDocument(); + expect(getByPlaceholderText('Select a content view')).toBeInTheDocument(); }); - fireEvent.click(getByText('Select a content view')); + fireEvent.click(getByPlaceholderText('Select a content view')); await patientlyWaitFor(() => { expect(getByText('cv2')).toBeInTheDocument(); }); fireEvent.click(getByText('cv2')); fireEvent.click(getByText('Next')); @@ -208,12 +208,12 @@ expect(getByText('test activation key')).toBeInTheDocument(); }); fireEvent.click(getByLabelText('test1')); await patientlyWaitFor(() => { expect(getByText('Select content view')).toBeInTheDocument(); - expect(getByText('Select a content view')).toBeInTheDocument(); + expect(getByPlaceholderText('Select a content view')).toBeInTheDocument(); }); - fireEvent.click(getByText('Select a content view')); + fireEvent.click(getByPlaceholderText('Select a content view')); await patientlyWaitFor(() => { expect(getByText('cv2')).toBeInTheDocument(); }); fireEvent.click(getByText('cv2')); // Move to Review