From e9a064ad71054c67cd30e901efe22a45b5fd44e2 Mon Sep 17 00:00:00 2001 From: Ulises M Date: Fri, 20 Dec 2024 17:07:19 -0600 Subject: [PATCH] Fix tests --- .../contexts/profile/edit/header/events_test.cljs | 2 +- src/tests/integration_test/profile_test.cljs | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/status_im/contexts/profile/edit/header/events_test.cljs b/src/status_im/contexts/profile/edit/header/events_test.cljs index f445759d6e..41971d2cf0 100644 --- a/src/status_im/contexts/profile/edit/header/events_test.cljs +++ b/src/status_im/contexts/profile/edit/header/events_test.cljs @@ -24,4 +24,4 @@ :params [key-uid] :on-success [:profile/delete-profile-picture-success]}]]]}] (is (match? expected - (sut/delete-profile-picture cofx))))) + (sut/delete-profile-picture cofx false))))) diff --git a/src/tests/integration_test/profile_test.cljs b/src/tests/integration_test/profile_test.cljs index b15649275e..05a9cf11d9 100644 --- a/src/tests/integration_test/profile_test.cljs +++ b/src/tests/integration_test/profile_test.cljs @@ -14,7 +14,7 @@ (fn [] (let [new-name "John Doe"] (promesa/do - (rf/dispatch [:profile/edit-name new-name]) + (rf/dispatch [:profile/edit-name {:display-name new-name}]) (h/wait-for [:navigate-back :toasts/upsert]) (let [profile (rf/sub [:profile/profile]) display-name (profile.utils/displayed-name profile)] @@ -26,7 +26,10 @@ (let [mock-image "resources/images/mock2/monkey.png" absolute-path (.resolve test-utils/path mock-image)] (promesa/do - (rf/dispatch [:profile/edit-picture absolute-path 80 80]) + (rf/dispatch [:profile/edit-picture + {:picture absolute-path + :crop-width 80 + :crop-height 80}]) (h/wait-for [:profile/update-local-picture :toasts/upsert]) (let [profile (rf/sub [:profile/profile])] (is (not (nil? (:images profile))))))))))