Skip to content

Commit

Permalink
test: Fix duplicated selector in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroChaparro committed Feb 8, 2024
1 parent 2e61700 commit 9ddffc9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions e2e/laboratories/edit-laboratory.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ test.describe.serial("Edit laboratory workflow", () => {

// Assert an alert is shown
await expect(
page.getByText("The block has been deleted successfully")
page.getByText("The markdown block has been deleted successfully")
).toBeVisible();

// Assert the block is not shown
Expand All @@ -453,7 +453,7 @@ test.describe.serial("Edit laboratory workflow", () => {

// Assert an alert is shown
await expect(
page.getByText("The block has been deleted successfully")
page.getByText("The test block has been deleted successfully")
).toBeVisible();

// Assert the block is not shown
Expand Down
2 changes: 1 addition & 1 deletion src/screens/edit-laboratory/dialogs/DeleteBlockDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const DeleteBlockDialog = ({
});

// Show success message
toast.success("The block has been deleted successfully");
toast.success(`The ${blockType} block has been deleted successfully`);

// Update the laboratory query
queryClient.setQueryData(
Expand Down

0 comments on commit 9ddffc9

Please sign in to comment.