@dionlarson/playwright-orchestrator-core 1.6.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapter.js +4 -1
- package/package.json +1 -1
package/dist/adapter.js
CHANGED
|
@@ -3,7 +3,10 @@ export class Adapter {
|
|
|
3
3
|
transformTestRunToItems(run) {
|
|
4
4
|
const tests = Object.entries(run)
|
|
5
5
|
.flatMap(([file, tests]) => {
|
|
6
|
-
return Object.entries(tests).flatMap(([
|
|
6
|
+
return Object.entries(tests).flatMap(([key, { timeout, projects, title, annotations }]) => {
|
|
7
|
+
// Key format is "line:col:title" - extract just "line:col" for position
|
|
8
|
+
const positionMatch = key.match(/^(\d+:\d+)/);
|
|
9
|
+
const position = positionMatch ? positionMatch[1] : key;
|
|
7
10
|
return projects.flatMap((project) => {
|
|
8
11
|
const testId = this.getTestId({ project, file, title, annotations });
|
|
9
12
|
return { testId, file, position, project, timeout, title };
|