Skip to content

Commit

Permalink
Adapt HistoryView test
Browse files Browse the repository at this point in the history
To use updated message for permanently deleted history
  • Loading branch information
davelopez committed Jul 26, 2024
1 parent 9de0ee2 commit 1dac9d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/src/components/History/HistoryView.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,9 @@ describe("History center panel View", () => {
expect(storageDashboardButtonDisabled(wrapper)).toBeFalsy();

// instead we have an alert
expect(wrapper.find("[data-description='history messages']").text()).toBe("History has been purged");
expect(wrapper.find("[data-description='history messages']").text()).toBe(
"History has been permanently deleted"
);
});

it("should not display archived message and should be importable when user is not owner and history is archived", async () => {
Expand Down

0 comments on commit 1dac9d9

Please sign in to comment.