diff --git a/api/test/e2e/eudr/fixtures.ts b/api/test/e2e/eudr/fixtures.ts index b0d1f98ac..e776fe852 100644 --- a/api/test/e2e/eudr/fixtures.ts +++ b/api/test/e2e/eudr/fixtures.ts @@ -10,7 +10,7 @@ import { TestManager } from '../../utils/test-manager'; import { GeoRegion } from '../../../src/modules/geo-regions/geo-region.entity'; export class EUDRTestManager extends TestManager { - url = '/api/v1/eudr/'; + url = '/api/v1/eudr'; constructor(manager: TestManager) { super(manager.testApp, manager.jwtToken, manager.dataSource); diff --git a/api/test/e2e/geo-regions/geo-regions-smart-filters.spec.ts b/api/test/e2e/geo-regions/geo-regions-smart-filters.spec.ts deleted file mode 100644 index 58ecc858e..000000000 --- a/api/test/e2e/geo-regions/geo-regions-smart-filters.spec.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { DataSource } from 'typeorm'; -import ApplicationManager from '../../utils/application-manager'; -import { TestApplication } from '../../utils/application-manager'; -import { clearTestDataFromDatabase } from '../../utils/database-test-helper'; -import { setupTestUser } from '../../utils/userAuth'; - -import { geoRegionFixtures } from './fixtures'; - -describe('GeoRegions Filters (e2e)', () => { - const fixtures = geoRegionFixtures(); - let testApplication: TestApplication; - let jwtToken: string; - let dataSource: DataSource; - - beforeAll(async () => { - testApplication = await ApplicationManager.init(); - - dataSource = testApplication.get(DataSource); - }); - beforeEach(async () => { - ({ jwtToken } = await setupTestUser(testApplication)); - }); - - afterEach(async () => { - await clearTestDataFromDatabase(dataSource); - }); - - afterAll(async () => { - await testApplication.close(); - }); - describe('EUDR Geo Regions Filters', () => { - it('should only get geo-regions that are part of EUDR data', async () => { - await fixtures.GivenGeoRegionsOfSourcingLocations(); - const { eudrGeoRegions } = await fixtures.GivenEUDRGeoRegions(); - const response = await fixtures.WhenIRequestEUDRGeoRegions({ - app: testApplication, - jwtToken, - }); - fixtures.ThenIShouldOnlyReceiveEUDRGeoRegions(response, eudrGeoRegions); - }); - }); -});