mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
chore: render readable title separator in errors (#19754)
This commit is contained in:
parent
bb275cccb6
commit
6083926111
@ -99,8 +99,7 @@ export class BaseReporter implements ReporterInternal {
|
||||
}
|
||||
|
||||
onError(error: TestError) {
|
||||
if (!(error as any).__isNotAFatalError)
|
||||
this._fatalErrors.push(error);
|
||||
this._fatalErrors.push(error);
|
||||
}
|
||||
|
||||
async onEnd(result: FullResult) {
|
||||
|
||||
@ -945,7 +945,7 @@ function createDuplicateTitlesErrors(config: FullConfigInternal, rootSuite: Suit
|
||||
for (const fileSuite of rootSuite.suites) {
|
||||
const testsByFullTitle = new Map<string, TestCase>();
|
||||
for (const test of fileSuite.allTests()) {
|
||||
const fullTitle = test.titlePath().slice(2).join('\x1e');
|
||||
const fullTitle = test.titlePath().slice(2).join(' › ');
|
||||
const existingTest = testsByFullTitle.get(fullTitle);
|
||||
if (existingTest) {
|
||||
const error: TestError = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user