From 1bd06e66027e0f42b30863dc53ba3735cb02e7ad Mon Sep 17 00:00:00 2001 From: volar Date: Thu, 21 Dec 2023 00:54:19 +0100 Subject: [PATCH] lint fixes --- cypress/e2e/assets/assetExifAutofill.cy.ts | 4 ++-- cypress/e2e/assets/audioAsset.cy.ts | 2 +- cypress/e2e/assets/audioAssetToPodcast.cy.ts | 2 +- cypress/e2e/assets/documentAsset.cy.ts | 2 +- cypress/e2e/assets/imageAsset.cy.ts | 2 +- cypress/e2e/assets/videoAsset.cy.ts | 2 +- cypress/e2e/assets/videoAssetToVideoShow.cy.ts | 2 +- cypress/e2e/upload/uploadAudio.cy.ts | 2 +- cypress/e2e/upload/uploadDocument.cy.ts | 4 ++-- cypress/e2e/upload/uploadImages.cy.ts | 2 +- cypress/e2e/upload/uploadVideo.cy.ts | 2 +- 11 files changed, 13 insertions(+), 13 deletions(-) diff --git a/cypress/e2e/assets/assetExifAutofill.cy.ts b/cypress/e2e/assets/assetExifAutofill.cy.ts index 64efdbc8..98ddf101 100644 --- a/cypress/e2e/assets/assetExifAutofill.cy.ts +++ b/cypress/e2e/assets/assetExifAutofill.cy.ts @@ -8,7 +8,7 @@ const EXPECTED_AUTHOR = 'test author ' describe(`Test add audio asset to podcast episode function, Env: ${CY.cfg}`, { tags: '@assetExifAutofill' }, () => { it('Prepare Test Data', ()=> { - cy.prepareData('image/sampleMeta1.jpg', 1, ASSET_ID) + cy.prepareData('image/sampleMeta1.jpg', true, ASSET_ID) }) it('Check image on Title-Description-Keywords-Artists', () => { cy.visit(`/asset/${ASSET_ID}`) @@ -29,7 +29,7 @@ describe(`Test add audio asset to podcast episode function, Env: ${CY.cfg}`, cy.deleteFile(ASSET_ID) }) it('Prepare Test Data', ()=> { - cy.prepareData('image/sampleMeta2.jpg', 1, ASSET_ID) + cy.prepareData('image/sampleMeta2.jpg', true, ASSET_ID) }) it('Check image on Subject-ImageDescription-Subjects-Owners', () => { cy.visit(`/asset/${ASSET_ID[1]}`) diff --git a/cypress/e2e/assets/audioAsset.cy.ts b/cypress/e2e/assets/audioAsset.cy.ts index 4a84f5a7..4ac8c94e 100644 --- a/cypress/e2e/assets/audioAsset.cy.ts +++ b/cypress/e2e/assets/audioAsset.cy.ts @@ -6,7 +6,7 @@ const ASSET_ID: Array = [] describe(`Test asset audio function, Env: ${CY.cfg}`, { tags: '@assetAudio' }, () => { it('Prepare Test Data', ()=> { - cy.prepareData('audio/sample.mp3',1, ASSET_ID) + cy.prepareData('audio/sample.mp3',true, ASSET_ID) }) it('Create Metadata', () => { cy.visit(`/asset/${ASSET_ID}`) diff --git a/cypress/e2e/assets/audioAssetToPodcast.cy.ts b/cypress/e2e/assets/audioAssetToPodcast.cy.ts index 04f7bdce..75b6ed76 100644 --- a/cypress/e2e/assets/audioAssetToPodcast.cy.ts +++ b/cypress/e2e/assets/audioAssetToPodcast.cy.ts @@ -12,7 +12,7 @@ const ASSET_ID: Array = [] describe(`Test add audio asset to podcast episode function, Env: ${CY.cfg}`, { tags: '@assetAudioToPodcast' }, () => { it('Prepare Test Data', ()=> { - cy.prepareData('audio/sample.mp3', 1, ASSET_ID) + cy.prepareData('audio/sample.mp3', true, ASSET_ID) }) it('Add audio asset to podcast episode', () => { cy.visit(`/asset/${ASSET_ID}`) diff --git a/cypress/e2e/assets/documentAsset.cy.ts b/cypress/e2e/assets/documentAsset.cy.ts index 350099b0..b79ebe90 100644 --- a/cypress/e2e/assets/documentAsset.cy.ts +++ b/cypress/e2e/assets/documentAsset.cy.ts @@ -6,7 +6,7 @@ const ASSET_ID: Array = [] describe(`Test asset document function, Env: ${CY.cfg}`, { tags: '@assetDocument' }, () => { it('Prepare Test Data', ()=> { - cy.prepareData('document/sample.doc', 1, ASSET_ID) + cy.prepareData('document/sample.doc', true, ASSET_ID) }) it('Create Metadata', ()=> { cy.visit(`/asset/${ASSET_ID}`) diff --git a/cypress/e2e/assets/imageAsset.cy.ts b/cypress/e2e/assets/imageAsset.cy.ts index 60f7e8bf..c89414c5 100644 --- a/cypress/e2e/assets/imageAsset.cy.ts +++ b/cypress/e2e/assets/imageAsset.cy.ts @@ -7,7 +7,7 @@ const ASSET_ID: Array = [] describe(`Test asset image function, Env: ${CY.cfg}`, { tags: '@assetImage' }, () => { it('Prepare Test Data', ()=> { - cy.prepareData('image/sample.png', 1, ASSET_ID) + cy.prepareData('image/sample.png', true, ASSET_ID) }) it('Create Metadata', ()=> { cy.visit(`/asset/${ASSET_ID}`) diff --git a/cypress/e2e/assets/videoAsset.cy.ts b/cypress/e2e/assets/videoAsset.cy.ts index 775a1661..fac0cbb2 100644 --- a/cypress/e2e/assets/videoAsset.cy.ts +++ b/cypress/e2e/assets/videoAsset.cy.ts @@ -6,7 +6,7 @@ const ASSET_ID: Array = [] describe(`Test asset video function, Env: ${CY.cfg}`, { tags: '@assetVideo' }, () => { it('Prepare Test Data', ()=> { - cy.prepareData('video/sample.mp4', 1, ASSET_ID) + cy.prepareData('video/sample.mp4', true, ASSET_ID) }) it('Create Metadata', ()=> { cy.visit(`/asset/${ASSET_ID}`) diff --git a/cypress/e2e/assets/videoAssetToVideoShow.cy.ts b/cypress/e2e/assets/videoAssetToVideoShow.cy.ts index ee628532..7604906f 100644 --- a/cypress/e2e/assets/videoAssetToVideoShow.cy.ts +++ b/cypress/e2e/assets/videoAssetToVideoShow.cy.ts @@ -6,7 +6,7 @@ const ASSET_ID: Array = [] describe(`Test add video asset to video show episode function, Env: ${CY.cfg}`, { tags: '@assetVideoToVideoShow' }, () => { it('Prepare Test Data', ()=> { - cy.prepareData('video/sample.mp4', 1, ASSET_ID) + cy.prepareData('video/sample.mp4', true, ASSET_ID) }) it('Add video asset to video show episode', () => { cy.visit(`/asset/${ASSET_ID}`) diff --git a/cypress/e2e/upload/uploadAudio.cy.ts b/cypress/e2e/upload/uploadAudio.cy.ts index ff83581a..1a5c0ad4 100644 --- a/cypress/e2e/upload/uploadAudio.cy.ts +++ b/cypress/e2e/upload/uploadAudio.cy.ts @@ -8,7 +8,7 @@ describe(`Test upload of various audio, Env: ${CY.cfg}`, { tags: '@audio' }, () AUDIO_TYPES.forEach((fileType) => { UPLOAD_TYPES.forEach((uploadType) => { it(`Audio: Upload ${fileType.toUpperCase()} - ${uploadType.toUpperCase()}`, () => { - cy.prepareData(`audio/sample.${fileType}`,0) + cy.prepareData(`audio/sample.${fileType}`,false) cy.uploadFile(`audio/sample.${fileType}`, uploadType) cy.api_getFileID().then((responseID) => { FILE_ID.push(responseID) diff --git a/cypress/e2e/upload/uploadDocument.cy.ts b/cypress/e2e/upload/uploadDocument.cy.ts index 97fdb94f..9743ad1e 100644 --- a/cypress/e2e/upload/uploadDocument.cy.ts +++ b/cypress/e2e/upload/uploadDocument.cy.ts @@ -8,12 +8,12 @@ describe(`Test upload of various audio, Env: ${CY.cfg}`, { tags: '@audio' }, () DOCUMENT_TYPES.forEach((fileType) => { UPLOAD_TYPES.forEach((uploadType) => { it(`Audio: Upload ${fileType.toUpperCase()} - ${uploadType.toUpperCase()}`, () => { - cy.prepareData(`document/sample.${fileType}`,0) + cy.prepareData(`document/sample.${fileType}`,false) cy.uploadFile(`document/sample.${fileType}`, uploadType) cy.api_getFileID().then((responseID) => { FILE_ID.push(responseID) cy.waitForUpload(ALERT_UPLOAD, 20000) - cy.verifyFileType(responseID, 'application', fileType) + cy.verifyFileType(responseID, 'audio', fileType) }) }) }) diff --git a/cypress/e2e/upload/uploadImages.cy.ts b/cypress/e2e/upload/uploadImages.cy.ts index 1bf38a3f..477c3d67 100644 --- a/cypress/e2e/upload/uploadImages.cy.ts +++ b/cypress/e2e/upload/uploadImages.cy.ts @@ -7,7 +7,7 @@ describe(`Test upload of various images, Env: ${CY.cfg}`, { tags: '@image' }, () IMAGE_TYPES.forEach((fileType) => { UPLOAD_TYPES.forEach((uploadType) => { it(`Image: Upload ${fileType.toUpperCase()} - ${uploadType.toUpperCase()}`, () => { - cy.prepareData(`image/sample.${fileType}`,0) + cy.prepareData(`image/sample.${fileType}`,false) cy.uploadFile(`image/sample.${fileType}`, uploadType, 20000) cy.api_getFileID().then((responseID) => { FILE_ID.push(responseID) diff --git a/cypress/e2e/upload/uploadVideo.cy.ts b/cypress/e2e/upload/uploadVideo.cy.ts index f5d8a432..f5185d9b 100644 --- a/cypress/e2e/upload/uploadVideo.cy.ts +++ b/cypress/e2e/upload/uploadVideo.cy.ts @@ -7,7 +7,7 @@ describe(`Test upload of various video, Env: ${CY.cfg}`, { tags: '@video' }, () VIDEO_TYPES.forEach((fileType) => { UPLOAD_TYPES.forEach((uploadType) => { it(`Video: Upload ${fileType.toUpperCase()} - ${uploadType.toUpperCase()}`, () => { - cy.prepareData(`video/sample.${fileType}`,0) + cy.prepareData(`video/sample.${fileType}`,false) cy.uploadFile(`video/sample.${fileType}`, uploadType, 20000) cy.api_getFileID().then((responseID) => { FILE_ID.push(responseID)