Skip to content

Commit

Permalink
remove stuff accidentally re-added
Browse files Browse the repository at this point in the history
  • Loading branch information
gmrabian committed Jan 30, 2025
1 parent ccd9b13 commit 9f8a3fe
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
21 changes: 0 additions & 21 deletions services/ui-src/src/components/reports/DrawerReportPage.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -379,27 +379,6 @@ describe("<DrawerReportPage />", () => {
const enterDefaultMethod = screen.getAllByText("Enter")[0];
expect(enterDefaultMethod).toBeVisible();
});

test("Can shows statusing for custom analysis methods", async () => {
render(drawerReportPageWithCustomEntities);
const iconAltText = screen.getAllByAltText("Entity is incomplete");
expect(iconAltText.length).toBeGreaterThan(0);
});

test("DrawerReportPage opens the delete modal on remove click", async () => {
render(drawerReportPageWithCustomEntities);
const addCustomMethod = screen.getByText("Add other analysis method");
const removeButton = screen.getByTestId("delete-entity");
await userEvent.click(removeButton);
// click delete in modal
const deleteButton = screen.getByText("Yes, delete method");
await userEvent.click(deleteButton);

// verify that the field is removed
const inputBoxLabelAfterRemove = screen.queryAllByTestId("test-label");
expect(inputBoxLabelAfterRemove).toHaveLength(0);
expect(addCustomMethod).toBeVisible();
});
});

testA11y(drawerReportPageWithEntities, () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,6 @@ export const DrawerReportPage = ({ route, validateOnRender }: Props) => {
{hasPlans && canAddEntities && !entity.isRequired && (
<Button
sx={sx.deleteButton}
data-testid="delete-entity"
onClick={() => openDeleteEntityModal(entity)}
>
<Image
Expand Down

0 comments on commit 9f8a3fe

Please sign in to comment.