mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-18 21:16:47 +00:00
0b90fc8cf5
On the desktop, a failed photo provider connection test toasted "Could not connect to Immich : Auth failed" with a stray space before the colon, and "Could not connect to Immich " with a trailing space when the server gave no reason. The phone already read "Could not connect to Immich: Auth failed". usePhotoProviderConnections took a testErrorGap option that put a space between the sentence and ": reason", and the desktop passed ' '. The option is gone, so both views join the reason directly. Regression test FE-COMP-PHOTOPROVIDERS-027 (PhotoProvidersSection.test.tsx) was red on the old code: "Unable to find an element with the text: Could not connect to Immich: Auth failed" (the toast read "Could not connect to Immich : Auth failed"). Changed assertions: - usePhotoProviderConnections.test.ts FE-COMP-PHOTOCONN-010: the desktop toast was 'memories.connectionError(Immich) : bad key', now 'memories.connectionError(Immich): bad key'; it also checks that a failure without a reason toasts the bare sentence.