From 76ff5eddd031688acd58b9d88b4b6bb13fe87967 Mon Sep 17 00:00:00 2001 From: Ammar Ahmed Date: Thu, 18 Apr 2024 09:49:22 +0500 Subject: [PATCH] mobile: fix tests --- .../components/dialogs/color-picker/index.tsx | 4 ++ apps/mobile/app/hooks/use-actions.tsx | 70 ++++++++++--------- apps/mobile/e2e/tests/note.e2e.js | 37 +++++----- apps/mobile/e2e/tests/utils.js | 4 +- 4 files changed, 64 insertions(+), 51 deletions(-) diff --git a/apps/mobile/app/components/dialogs/color-picker/index.tsx b/apps/mobile/app/components/dialogs/color-picker/index.tsx index 1ce21a359..db4c87173 100644 --- a/apps/mobile/app/components/dialogs/color-picker/index.tsx +++ b/apps/mobile/app/components/dialogs/color-picker/index.tsx @@ -146,12 +146,16 @@ const ColorPicker = ({ onChangeText={(value) => { title.current = value; }} + testID="color-title-input" defaultValue={title.current} placeholder={title.current || "Color title"} />