File tree Expand file tree Collapse file tree 4 files changed +18
-0
lines changed
Expand file tree Collapse file tree 4 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -43,3 +43,4 @@ API_LOGGING_ENABLED=1
4343SENTRY_ENABLED=0
4444SENTRY_ENVIRONMENT=ci-main
4545USE_PUBLIC_LOG_DIR=1
46+ VIEW_ID_TRACKER=1
Original file line number Diff line number Diff line change @@ -40,3 +40,4 @@ API_LOGGING_ENABLED=1
4040SENTRY_ENABLED=0
4141SENTRY_ENVIRONMENT=ci-main
4242USE_PUBLIC_LOG_DIR=0
43+ VIEW_ID_TRACKER=1
Original file line number Diff line number Diff line change 142142; ; download via Appium doesn't seem like a solid long-term
143143; ; approach for QA team
144144(def use-public-log-dir? (enabled? (get-config :USE_PUBLIC_LOG_DIR " 0" )))
145+
146+ ; ; A flag for enabling hidden view-id-tracker view, required for e2e testing
147+ (def enable-view-id-tracker? (enabled? (get-config :VIEW_ID_TRACKER " 0" )))
Original file line number Diff line number Diff line change 22 (:require
33 [quo.foundations.colors :as colors]
44 [react-native.core :as rn]
5+ [status-im.config :as config]
56 [status-im.contexts.shell.bottom-tabs.view :as bottom-tabs]
67 [status-im.contexts.shell.home-stack.view :as home-stack]
78 [status-im.contexts.shell.shared-values :as shared-values]
1516 (rf/dispatch [:navigate-back ])
1617 true ))
1718
19+ ; ; A hidden view-id-tracker view, required for e2e testing
20+ (defn- view-id-tracker
21+ []
22+ (let [view-id (rf/sub [:view-id ])]
23+ [rn/view
24+ {:accessible true
25+ :accessibility-label :view-id-tracker
26+ :style {:position :absolute :z-index -1 }}
27+ [rn/text {:color :transparent } view-id]]))
28+
1829(defn shell-stack
1930 []
2031 (let [shared-values (shared-values/calculate-and-set-shared-values )]
2334 (rn/hw-back-add-listener navigate-back-handler)
2435 #(rn/hw-back-remove-listener navigate-back-handler)))
2536 [rn/view {:style {:background-color colors/neutral-100 :flex 1 }}
37+ (when config/enable-view-id-tracker?
38+ [view-id-tracker])
2639 [home-stack/view shared-values]
2740 [bottom-tabs/view shared-values]]))
You can’t perform that action at this time.
0 commit comments