@dionlarson/playwright-orchestrator-pg 1.6.5 → 1.6.6
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.
|
@@ -231,7 +231,15 @@ export class PostgreSQLAdapter extends Adapter {
|
|
|
231
231
|
};
|
|
232
232
|
}
|
|
233
233
|
async updateTestWithResults(status, { runId, test, config, testResult }) {
|
|
234
|
-
|
|
234
|
+
// Use test.title (from DB) not testResult.title (from reporter)
|
|
235
|
+
// For serial suites, testResult.title may be an individual test title
|
|
236
|
+
// while test.title is the suite title we stored
|
|
237
|
+
const testId = this.getTestId({
|
|
238
|
+
project: test.project,
|
|
239
|
+
file: test.file,
|
|
240
|
+
title: test.title,
|
|
241
|
+
annotations: testResult.annotations,
|
|
242
|
+
});
|
|
235
243
|
const { rows: [testInfo], } = await this.pool.query({
|
|
236
244
|
text: `SELECT
|
|
237
245
|
id,
|