diff --git a/qase-playwright/src/reporter.ts b/qase-playwright/src/reporter.ts index b788d6b8..eb833378 100644 --- a/qase-playwright/src/reporter.ts +++ b/qase-playwright/src/reporter.ts @@ -59,12 +59,6 @@ export class PlaywrightQaseReporter implements Reporter { */ private static qaseIds: Map = new Map(); - /** - * @type {Map} - * @private - */ - private qaseTestWithOldAnnotation: Map = new Map(); - /** * @param {TestCase} test * @returns {string[]} @@ -414,12 +408,7 @@ export class PlaywrightQaseReporter implements Reporter { } else if (testCaseMetadata.ids.length > 0) { testResult.testops_id = testCaseMetadata.ids; } else { - const ids = PlaywrightQaseReporter.qaseIds.get(test.title) ?? null; - testResult.testops_id = ids; - if (ids) { - const path = `${test.location.file}:${test.location.line}:${test.location.column}`; - this.qaseTestWithOldAnnotation.set(path, ids); - } + testResult.testops_id = PlaywrightQaseReporter.qaseIds.get(test.title) ?? null; } testResult.signature = this.getSignature(suites, testCaseMetadata.parameters, testResult.testops_id ?? []);