From 5f553c29dfdac1bf81debe5e28983a9dbe74bd7f Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Tue, 5 Dec 2023 14:50:56 -0600 Subject: E2E 🟢 (#2092) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add logged out e2e ctrl, fix login test * Fix log handling via env vars in expo * Fix create account test * Upgrade dev-env * Fix home screen tests * Fix composer tests * Fix curate-lists tests, split in two * Fix invite codes test * Fix curate-lists tests * Give up on mergefeed test * Fix mod lists * Fix app view url * Fix profile tests * Fix profile test with hack * Keep using globals * Fix two more * Fix thread view * Better skip for merge feed * Revert debug code --- src/env.ts | 2 +- src/state/modals/index.tsx | 1 + src/view/com/feeds/FeedSourceCard.tsx | 1 + src/view/com/lists/ListMembers.tsx | 1 + src/view/com/modals/UserAddRemoveLists.tsx | 7 ++++++- src/view/com/post-thread/PostThreadItem.tsx | 10 ++++++++-- src/view/com/profile/ProfileHeader.tsx | 1 + src/view/com/testing/TestCtrls.e2e.tsx | 8 ++++++++ src/view/com/util/Toast.tsx | 2 ++ src/view/shell/desktop/Search.tsx | 1 + 10 files changed, 30 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/env.ts b/src/env.ts index 7b255e7ea..fbcc15f57 100644 --- a/src/env.ts +++ b/src/env.ts @@ -1,4 +1,4 @@ -export const IS_TEST = process.env.NODE_ENV === 'test' +export const IS_TEST = process.env.EXPO_PUBLIC_ENV === 'test' export const IS_DEV = __DEV__ export const IS_PROD = !IS_DEV export const LOG_DEBUG = process.env.EXPO_PUBLIC_LOG_DEBUG || '' diff --git a/src/state/modals/index.tsx b/src/state/modals/index.tsx index 84fea3bad..94d6d9ec5 100644 --- a/src/state/modals/index.tsx +++ b/src/state/modals/index.tsx @@ -61,6 +61,7 @@ export interface CreateOrEditListModal { export interface UserAddRemoveListsModal { name: 'user-add-remove-lists' subject: string + handle: string displayName: string onAdd?: (listUri: string) => void onRemove?: (listUri: string) => void diff --git a/src/view/com/feeds/FeedSourceCard.tsx b/src/view/com/feeds/FeedSourceCard.tsx index 1f2af069b..460816fc1 100644 --- a/src/view/com/feeds/FeedSourceCard.tsx +++ b/src/view/com/feeds/FeedSourceCard.tsx @@ -170,6 +170,7 @@ export function FeedSourceCardLoaded({ {showSaveBtn && feed.type === 'feed' && ( void onRemove?: (listUri: string) => void @@ -60,6 +62,7 @@ export function Component({ list={list} memberships={memberships} subject={subject} + handle={handle} onAdd={onAdd} onRemove={onRemove} /> @@ -87,6 +90,7 @@ function ListItem({ list, memberships, subject, + handle, onAdd, onRemove, }: { @@ -94,6 +98,7 @@ function ListItem({ list: GraphDefs.ListView memberships: ListMembersip[] | undefined subject: string + handle: string onAdd?: (listUri: string) => void onRemove?: (listUri: string) => void }) { @@ -182,7 +187,7 @@ function ListItem({ ) : (