diff --git a/api/apps/geoprocessing/test/integration/cloning/piece-exporters/project-metadata.piece-exporter.e2e-spec.ts b/api/apps/geoprocessing/test/integration/cloning/piece-exporters/project-metadata.piece-exporter.e2e-spec.ts index 5526f36079..bfd3357999 100644 --- a/api/apps/geoprocessing/test/integration/cloning/piece-exporters/project-metadata.piece-exporter.e2e-spec.ts +++ b/api/apps/geoprocessing/test/integration/cloning/piece-exporters/project-metadata.piece-exporter.e2e-spec.ts @@ -41,12 +41,14 @@ describe(ProjectMetadataPieceExporter, () => { .ThenAProjectExistErrorShouldBeThrown(); }); - it('fails when project output summary is not found', async () => { - await fixtures.GivenProjectExist(ProjectSourcesEnum.marxanCloud); + it('saves file successfully even when project output summary was never created yet', async () => { + const marxanSource = ProjectSourcesEnum.marxanCloud; const input = fixtures.GivenAProjectMetadataExportJob(); + await fixtures.GivenProjectExist(marxanSource); + await fixtures.GivenProjectBlmRangeExist(); await fixtures .WhenPieceExporterIsInvoked(input) - .ThenAnOtuputSummaryExistErrorShouldBeThrown(); + .ThenProjectMetadataFileIsSaved(marxanSource); }); it('fails when project blm range is not found', async () => { @@ -187,11 +189,6 @@ const getFixtures = async () => { ThenAProjectBlmExistErrorShouldBeThrown: async () => { await expect(sut.run(input)).rejects.toThrow(/blm.*does not exist/gi); }, - ThenAnOtuputSummaryExistErrorShouldBeThrown: async () => { - await expect(sut.run(input)).rejects.toThrow( - /Output Summary.*does not exist/gi, - ); - }, ThenProjectMetadataFileIsSaved: async (sources: ProjectSourcesEnum) => { const result = await sut.run(input); const file = await fileRepository.get(result.uris[0].uri);