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,7 +99,6 @@ export class BaseReporter implements ReporterInternal {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onError(error: TestError) {
|
onError(error: TestError) {
|
||||||
if (!(error as any).__isNotAFatalError)
|
|
||||||
this._fatalErrors.push(error);
|
this._fatalErrors.push(error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -945,7 +945,7 @@ function createDuplicateTitlesErrors(config: FullConfigInternal, rootSuite: Suit
|
|||||||
for (const fileSuite of rootSuite.suites) {
|
for (const fileSuite of rootSuite.suites) {
|
||||||
const testsByFullTitle = new Map<string, TestCase>();
|
const testsByFullTitle = new Map<string, TestCase>();
|
||||||
for (const test of fileSuite.allTests()) {
|
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);
|
const existingTest = testsByFullTitle.get(fullTitle);
|
||||||
if (existingTest) {
|
if (existingTest) {
|
||||||
const error: TestError = {
|
const error: TestError = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user