@dionlarson/playwright-orchestrator-mongo 1.5.1 → 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/mongo-db-adapter.js +4 -2
- package/package.json +1 -1
package/dist/mongo-db-adapter.js
CHANGED
|
@@ -37,7 +37,7 @@ export class MongoDbAdapter extends Adapter {
|
|
|
37
37
|
});
|
|
38
38
|
if (!result)
|
|
39
39
|
return undefined;
|
|
40
|
-
const { file, line, column, project, timeout } = result;
|
|
40
|
+
const { file, line, column, project, timeout, title } = result;
|
|
41
41
|
const { order } = this.parseTestId(result._id);
|
|
42
42
|
return {
|
|
43
43
|
file,
|
|
@@ -45,6 +45,7 @@ export class MongoDbAdapter extends Adapter {
|
|
|
45
45
|
project,
|
|
46
46
|
timeout,
|
|
47
47
|
order,
|
|
48
|
+
title,
|
|
48
49
|
};
|
|
49
50
|
}
|
|
50
51
|
async finishTest(params) {
|
|
@@ -104,13 +105,14 @@ export class MongoDbAdapter extends Adapter {
|
|
|
104
105
|
updated: new Date(),
|
|
105
106
|
};
|
|
106
107
|
await this.runs.insertOne(run);
|
|
107
|
-
await this.tests.insertMany(tests.map(({ file, order, position, project, timeout }) => {
|
|
108
|
+
await this.tests.insertMany(tests.map(({ file, order, position, project, timeout, title }) => {
|
|
108
109
|
const [line, column] = position.split(':').map(Number);
|
|
109
110
|
return {
|
|
110
111
|
_id: this.generateTestId(runId, order),
|
|
111
112
|
file,
|
|
112
113
|
project,
|
|
113
114
|
timeout,
|
|
115
|
+
title,
|
|
114
116
|
line,
|
|
115
117
|
column,
|
|
116
118
|
status: TestStatus.Ready,
|