Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

e2e: add test ids

ammarahm-edf43128703531
diff --git a/apps/mobile/src/components/listitems/note/index.js b/apps/mobile/src/components/listitems/note/index.js
index 6e820d37f..70e0c53e0 100644
--- a/apps/mobile/src/components/listitems/note/index.js
+++ b/apps/mobile/src/components/listitems/note/index.js
@@ -207,6 +207,7 @@ const NoteItem = ({ item, isTrash, tags, dateBy = 'dateCreated', noOpen = false
{item.locked ? (
<Icon
name="lock"
+ testID="note-locked-icon"
size={SIZE.sm}
style={{
marginRight: 6
diff --git a/apps/mobile/src/components/selectionheader/index.js b/apps/mobile/src/components/selectionheader/index.js
index 9fa49ba37..544fee05f 100644
--- a/apps/mobile/src/components/selectionheader/index.js
+++ b/apps/mobile/src/components/selectionheader/index.js
@@ -198,6 +198,7 @@ export const SelectionHeader = React.memo(({ screen, type, extras }) => {
customStyle={{
marginLeft: 10
}}
+ testID="select-minus"
color={colors.pri}
name="minus"
size={SIZE.xl}
diff --git a/apps/mobile/src/screens/settings/2fa.tsx b/apps/mobile/src/screens/settings/2fa.tsx
index 0886a1e4b..b1a4d01c1 100644
--- a/apps/mobile/src/screens/settings/2fa.tsx
+++ b/apps/mobile/src/screens/settings/2fa.tsx
@@ -4,7 +4,6 @@ import { ActivityIndicator, Linking, Platform, View } from 'react-native';
import { FlatList } from 'react-native-gesture-handler';
import * as ScopedStorage from 'react-native-scoped-storage';
import RNFetchBlob from 'rn-fetch-blob';
-import { sleep } from '../../../e2e/tests/utils.test';
import DialogHeader from '../../components/dialog/dialog-header';
import { Button } from '../../components/ui/button';
import { IconButton } from '../../components/ui/icon-button';
@@ -23,6 +22,7 @@ import { eCloseProgressDialog } from '../../utils/events';
import useTimer from '../../utils/hooks/use-timer';
import { sanitizeFilename } from '../../utils/sanitizer';
import { SIZE } from '../../utils/size';
+import { sleep } from '../../utils/time';
import { CustomButton } from './button';
import { verifyUser } from './functions';
import SectionHeader from './section-header';