Skip to content
This repository has been archived by the owner on Feb 28, 2025. It is now read-only.

Commit

Permalink
text: update History side bar test
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcMcIntosh committed Jan 30, 2024
1 parent 85d84e4 commit 07ba7c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/features/HistorySideBar.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ describe("HistorySideBar", () => {
const restoreButtonText = await app.findByText(itemTitleToDelete);

const deleteButton =
restoreButtonText.parentElement?.parentElement?.nextElementSibling;

restoreButtonText.parentElement?.parentElement?.nextElementSibling
?.children[0];
expect(deleteButton).not.toBeNull();

app.debug(deleteButton);
if (deleteButton) {
await user.click(deleteButton);
}
Expand Down

0 comments on commit 07ba7c2

Please sign in to comment.