diff options
author | Paul Frazee <pfrazee@gmail.com> | 2024-03-19 17:54:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-19 17:54:40 -0700 |
commit | 54f424d0476f7da221b890c9096886b3ca3ac472 (patch) | |
tree | c45d1ee2ef89978b8bf064cec0d94f9e37b53185 /src/lib/media/picker.e2e.tsx | |
parent | a90566d86439a96509967f522069a4be729dfc1b (diff) | |
download | voidsky-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.tsx | 3 |
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', |