Skip to content

Commit f2c76ac

Browse files
committed
fix: fix e2e test for importing scancode files
* put scancode input file directly in test directory to avoid path issues
1 parent 2c226a4 commit f2c76ac

File tree

4 files changed

+45475
-8
lines changed

4 files changed

+45475
-8
lines changed

src/ElectronBackend/opossum-file/__tests__/convertToOpossum.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe('successfulConversionOfScanCodeFile', () => {
2020

2121
it('should convert the ScanCode file and return a path to a valid .opossum file', async () => {
2222
const opossumPath = getTempPath();
23-
await convertScancodeToOpossum(SCANCODE_TEST_FILE, getTempPath());
23+
await convertScancodeToOpossum(SCANCODE_TEST_FILE, opossumPath);
2424
expect(existsSync(opossumPath)).toBe(true);
2525
expect(isOpossumFileFormat(opossumPath)).toBe(true);
2626

src/e2e-tests/page-objects/ImportDialog.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class ImportDialog {
3939
this.errorIcon = this.node.getByTestId('ErrorIcon').locator('path');
4040

4141
this.legacyFilePath = info.outputPath(`${legacyFilename}.json`);
42-
this.scancodeFilePath = info.outputPath('scancode.json');
42+
this.scancodeFilePath = 'scancode.json';
4343
}
4444

4545
public assert = {

0 commit comments

Comments
 (0)