High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
chore: test more formats in e2e (#9001)
Mertc30cd3b3786e
diff --git a/e2e/src/api/specs/asset.e2e-spec.ts b/e2e/src/api/specs/asset.e2e-spec.tsindex 53c4c43468..d18dc2532c 100644--- a/e2e/src/api/specs/asset.e2e-spec.ts+++ b/e2e/src/api/specs/asset.e2e-spec.ts@@ -572,6 +572,22 @@ describe('/asset', () => {}const tests = [+ {+ input: 'formats/avif/8bit-sRGB.avif',+ expected: {+ type: AssetTypeEnum.Image,+ originalFileName: '8bit-sRGB.avif',+ resized: true,+ exifInfo: {+ description: '',+ exifImageHeight: 1080,+ exifImageWidth: 1617,+ fileSizeInByte: 862_424,+ latitude: null,+ longitude: null,+ },+ },+ },{input: 'formats/jpg/el_torcal_rocks.jpg',expected: {@@ -596,6 +612,22 @@ describe('/asset', () => {},},},+ {+ input: 'formats/jxl/8bit-sRGB.jxl',+ expected: {+ type: AssetTypeEnum.Image,+ originalFileName: '8bit-sRGB.jxl',+ resized: true,+ exifInfo: {+ description: '',+ exifImageHeight: 1080,+ exifImageWidth: 1440,+ fileSizeInByte: 1_780_777,+ latitude: null,+ longitude: null,+ },+ },+ },{input: 'formats/heic/IMG_2682.heic',expected: {@@ -681,6 +713,80 @@ describe('/asset', () => {},},},+ {+ input: 'formats/raw/Panasonic/DMC-GH4/4_3.rw2',+ expected: {+ type: AssetTypeEnum.Image,+ originalFileName: '4_3.rw2',+ resized: true,+ fileCreatedAt: '2018-05-10T08:42:37.842Z',+ exifInfo: {+ make: 'Panasonic',+ model: 'DMC-GH4',+ exifImageHeight: 3456,+ exifImageWidth: 4608,+ exposureTime: '1/100',+ fNumber: 3.2,+ focalLength: 35,+ iso: 400,+ fileSizeInByte: 19_587_072,+ dateTimeOriginal: '2018-05-10T08:42:37.842Z',+ latitude: null,+ longitude: null,+ orientation: '1',+ },+ },+ },+ {+ input: 'formats/raw/Sony/ILCE-6300/12bit-compressed-(3_2).arw',+ expected: {+ type: AssetTypeEnum.Image,+ originalFileName: '12bit-compressed-(3_2).arw',+ resized: true,+ fileCreatedAt: '2016-09-27T10:51:44.000Z',+ exifInfo: {+ make: 'SONY',+ model: 'ILCE-6300',+ exifImageHeight: 4024,+ exifImageWidth: 6048,+ exposureTime: '1/320',+ fNumber: 8,+ focalLength: 97,+ iso: 100,+ lensModel: 'E PZ 18-105mm F4 G OSS',+ fileSizeInByte: 25_001_984,+ dateTimeOriginal: '2016-09-27T10:51:44.000Z',+ latitude: null,+ longitude: null,+ orientation: '1',+ },+ },+ },+ {+ input: 'formats/raw/Sony/ILCE-7M2/14bit-uncompressed-(3_2).arw',+ expected: {+ type: AssetTypeEnum.Image,+ originalFileName: '14bit-uncompressed-(3_2).arw',+ resized: true,+ fileCreatedAt: '2016-01-08T15:08:01.000Z',+ exifInfo: {+ make: 'SONY',+ model: 'ILCE-7M2',+ exifImageHeight: 4024,+ exifImageWidth: 6048,+ exposureTime: '1.3',+ fNumber: 22,+ focalLength: 25,+ iso: 100,+ lensModel: 'E 25mm F2',+ fileSizeInByte: 49_512_448,+ dateTimeOriginal: '2016-01-08T15:08:01.000Z',+ latitude: null,+ longitude: null,+ orientation: '1',+ },+ },+ },];for (const { input, expected } of tests) {diff --git a/server/test/assets b/server/test/assetsindex 61131e84ec..625ec3a5e9 160000--- a/server/test/assets+++ b/server/test/assets@@ -1 +1 @@-Subproject commit 61131e84ec91d316265aebe375b3155308baaa89+Subproject commit 625ec3a5e9aa9b087ad986e0c2e6a24edb4ea81e