Skip to content

Commit

Permalink
MAT-7100a change remove to delete
Browse files Browse the repository at this point in the history
  • Loading branch information
ethankaplan committed Dec 2, 2024
1 parent aea3cfb commit eba62b2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ describe("Saved Codes section component", () => {
const editButton = getByTestId(`edit-code-0`);
expect(editButton).toBeInTheDocument();

const removeButton = getByTestId(`remove-code-0`);
const removeButton = getByTestId(`delete-code-0`);
expect(removeButton).toBeInTheDocument();

userEvent.click(editButton);
Expand Down Expand Up @@ -218,7 +218,7 @@ describe("Saved Codes section component", () => {
const editButton = getByTestId(`edit-code-0`);
expect(editButton).toBeInTheDocument();

const removeButton = getByTestId(`remove-code-0`);
const removeButton = getByTestId(`delete-code-0`);
expect(removeButton).toBeInTheDocument();

userEvent.click(removeButton);
Expand Down Expand Up @@ -251,7 +251,7 @@ describe("Saved Codes section component", () => {
);
await checkRows(2);

const removeButton = getByTestId(`remove-code-0`);
const removeButton = getByTestId(`delete-code-0`);
expect(removeButton).toBeInTheDocument();

userEvent.click(removeButton);
Expand Down Expand Up @@ -279,7 +279,7 @@ describe("Saved Codes section component", () => {
);
await checkRows(2);

const removeButton = getByTestId(`remove-code-0`);
const removeButton = getByTestId(`delete-code-0`);
expect(removeButton).toBeInTheDocument();

userEvent.click(removeButton);
Expand Down Expand Up @@ -313,7 +313,7 @@ describe("Saved Codes section component", () => {
);
await checkRows(2);

const removeButton = getByTestId(`remove-code-0`);
const removeButton = getByTestId(`delete-code-0`);
expect(removeButton).toBeInTheDocument();

userEvent.click(removeButton);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,10 @@ export default function SavedCodesSubSection({
{canEdit ? (
<>
<ToolTippedIcon
tooltipMessage="Remove"
tooltipMessage="Delete"
buttonProps={{
"data-testid": `remove-code-${row.cell.row.id}`,
"aria-label": `remove-code-${row.cell.row.id}`,
"data-testid": `delete-code-${row.cell.row.id}`,
"aria-label": `delete-code-${row.cell.row.id}`,
size: "small",
onClick: (e) => {
setSelectedCodeDetails(
Expand Down

0 comments on commit eba62b2

Please sign in to comment.