about summary refs log tree commit diff
path: root/src/lib/media/picker.e2e.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2024-03-19 17:54:40 -0700
committerGitHub <noreply@github.com>2024-03-19 17:54:40 -0700
commit54f424d0476f7da221b890c9096886b3ca3ac472 (patch)
treec45d1ee2ef89978b8bf064cec0d94f9e37b53185 /src/lib/media/picker.e2e.tsx
parenta90566d86439a96509967f522069a4be729dfc1b (diff)
downloadvoidsky-54f424d0476f7da221b890c9096886b3ca3ac472.tar.zst
Various e2e test fixes (#3284)
* Just use the first picture every time

* Add missing testIDs

* Various test fixes

* Use simplified link fetcher for e2e

* Disable tests for now-n

* Update test-env creation
Diffstat (limited to 'src/lib/media/picker.e2e.tsx')
-rw-r--r--src/lib/media/picker.e2e.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/media/picker.e2e.tsx b/src/lib/media/picker.e2e.tsx
index d7b608041..31702ab22 100644
--- a/src/lib/media/picker.e2e.tsx
+++ b/src/lib/media/picker.e2e.tsx
@@ -3,7 +3,6 @@ import RNFS from 'react-native-fs'
 import {CropperOptions} from './types'
 import {compressIfNeeded} from './manip'
 
-let _imageCounter = 0
 async function getFile() {
   let files = await RNFS.readDir(
     RNFS.LibraryDirectoryPath.split('/')
@@ -12,7 +11,7 @@ async function getFile() {
       .join('/'),
   )
   files = files.filter(file => file.path.endsWith('.JPG'))
-  const file = files[_imageCounter++ % files.length]
+  const file = files[0]
   return await compressIfNeeded({
     path: file.path,
     mime: 'image/jpeg',