Skip to content

Commit

Permalink
Temporary suppress load imported tokens error toast
Browse files Browse the repository at this point in the history
Otherwise, it’s always present in the CI, which breaks the e2e tests.
  • Loading branch information
mstrasinskis committed Aug 1, 2024
1 parent 9164fcf commit ada4b18
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions frontend/src/tests/lib/services/app.services.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,16 @@ describe("app-services", () => {

const toastData = get(toastsStore);

expect(toastData).toHaveLength(0);
// The imported tokens error should be shown.
// TODO: check if this is the correct behavior
expect(toastData).toHaveLength(1);
expect(toastData).toEqual([
expect.objectContaining({
text: "There was an unexpected issue while loading imported tokens. Cannot read properties of undefined (reading 'imported_tokens')",
level: "error",
}),
]);
// expect(toastData).toHaveLength(1);
// expect(toastData).toEqual([
// expect.objectContaining({
// text: "There was an unexpected issue while loading imported tokens. Cannot read properties of undefined (reading 'imported_tokens')",
// level: "error",
// }),
// ]);
});

it("should call loadActionableProposals after Sns data is ready", async () => {
Expand Down

0 comments on commit ada4b18

Please sign in to comment.