@@ -123,11 +123,15 @@ versions.forEach((version) => {
123
123
} )
124
124
125
125
assert . includeMembers ( testEvents . map ( test => test . content . resource ) , [
126
- 'landing-page-test.js.should work with passing tests' ,
127
- 'landing-page-test.js.should work with skipped tests' ,
128
- 'landing-page-test.js.should work with fixme' ,
129
- 'landing-page-test.js.should work with annotated tests' ,
130
- 'todo-list-page-test.js.should work with failing tests' ,
126
+ 'landing-page-test.js.highest-level-describe' +
127
+ ' leading and trailing spaces should work with passing tests' ,
128
+ 'landing-page-test.js.highest-level-describe' +
129
+ ' leading and trailing spaces should work with skipped tests' ,
130
+ 'landing-page-test.js.highest-level-describe' +
131
+ ' leading and trailing spaces should work with fixme' ,
132
+ 'landing-page-test.js.highest-level-describe' +
133
+ ' leading and trailing spaces should work with annotated tests' ,
134
+ 'todo-list-page-test.js.playwright should work with failing tests' ,
131
135
'todo-list-page-test.js.should work with fixme root'
132
136
] )
133
137
@@ -155,7 +159,7 @@ versions.forEach((version) => {
155
159
assert . property ( stepEvent . content . meta , 'playwright.step' )
156
160
} )
157
161
const annotatedTest = testEvents . find ( test =>
158
- test . content . resource === 'landing-page-test.js. should work with annotated tests'
162
+ test . content . resource . endsWith ( ' should work with annotated tests')
159
163
)
160
164
161
165
assert . propertyVal ( annotatedTest . content . meta , 'test.memory.usage' , 'low' )
@@ -187,8 +191,8 @@ versions.forEach((version) => {
187
191
const events = payloads . flatMap ( ( { payload } ) => payload . events )
188
192
const testEvents = events . filter ( event => event . type === 'test' )
189
193
assert . includeMembers ( testEvents . map ( test => test . content . resource ) , [
190
- 'playwright-tests-ts/one-test.js.should work with passing tests' ,
191
- 'playwright-tests-ts/one-test.js.should work with skipped tests'
194
+ 'playwright-tests-ts/one-test.js.playwright should work with passing tests' ,
195
+ 'playwright-tests-ts/one-test.js.playwright should work with skipped tests'
192
196
] )
193
197
assert . include ( testOutput , '1 passed' )
194
198
assert . include ( testOutput , '1 skipped' )
@@ -263,16 +267,17 @@ versions.forEach((version) => {
263
267
{
264
268
playwright : {
265
269
'landing-page-test.js' : [
266
- // 'should work with passing tests', // it will be considered new
267
- 'should work with skipped tests' ,
268
- 'should work with fixme' ,
269
- 'should work with annotated tests'
270
+ // it will be considered new
271
+ // 'highest-level-describe leading and trailing spaces should work with passing tests',
272
+ 'highest-level-describe leading and trailing spaces should work with skipped tests' ,
273
+ 'highest-level-describe leading and trailing spaces should work with fixme' ,
274
+ 'highest-level-describe leading and trailing spaces should work with annotated tests'
270
275
] ,
271
276
'skipped-suite-test.js' : [
272
277
'should work with fixme root'
273
278
] ,
274
279
'todo-list-page-test.js' : [
275
- 'should work with failing tests' ,
280
+ 'playwright should work with failing tests' ,
276
281
'should work with fixme root'
277
282
]
278
283
}
@@ -288,8 +293,7 @@ versions.forEach((version) => {
288
293
289
294
const tests = events . filter ( event => event . type === 'test' ) . map ( event => event . content )
290
295
const newTests = tests . filter ( test =>
291
- test . resource ===
292
- 'landing-page-test.js.should work with passing tests'
296
+ test . resource . endsWith ( 'should work with passing tests' )
293
297
)
294
298
newTests . forEach ( test => {
295
299
assert . propertyVal ( test . meta , TEST_IS_NEW , 'true' )
@@ -337,16 +341,17 @@ versions.forEach((version) => {
337
341
{
338
342
playwright : {
339
343
'landing-page-test.js' : [
340
- // 'should work with passing tests', // it will be considered new
341
- 'should work with skipped tests' ,
342
- 'should work with fixme' ,
343
- 'should work with annotated tests'
344
+ // it will be considered new
345
+ // 'highest-level-describe leading and trailing spaces should work with passing tests',
346
+ 'highest-level-describe leading and trailing spaces should work with skipped tests' ,
347
+ 'highest-level-describe leading and trailing spaces should work with fixme' ,
348
+ 'highest-level-describe leading and trailing spaces should work with annotated tests'
344
349
] ,
345
350
'skipped-suite-test.js' : [
346
351
'should work with fixme root'
347
352
] ,
348
353
'todo-list-page-test.js' : [
349
- 'should work with failing tests' ,
354
+ 'playwright should work with failing tests' ,
350
355
'should work with fixme root'
351
356
]
352
357
}
@@ -359,8 +364,7 @@ versions.forEach((version) => {
359
364
const tests = events . filter ( event => event . type === 'test' ) . map ( event => event . content )
360
365
361
366
const newTests = tests . filter ( test =>
362
- test . resource ===
363
- 'landing-page-test.js.should work with passing tests'
367
+ test . resource . endsWith ( 'should work with passing tests' )
364
368
)
365
369
newTests . forEach ( test => {
366
370
assert . notProperty ( test . meta , TEST_IS_NEW )
@@ -406,16 +410,18 @@ versions.forEach((version) => {
406
410
{
407
411
playwright : {
408
412
'landing-page-test.js' : [
409
- 'should work with passing tests' ,
410
- // 'should work with skipped tests', // new but not retried because it's skipped
411
- // 'should work with fixme', // new but not retried because it's skipped
412
- 'should work with annotated tests'
413
+ 'highest-level-describe leading and trailing spaces should work with passing tests' ,
414
+ // new but not retried because it's skipped
415
+ // 'highest-level-describe leading and trailing spaces should work with skipped tests',
416
+ // new but not retried because it's skipped
417
+ // 'highest-level-describe leading and trailing spaces should work with fixme',
418
+ 'highest-level-describe leading and trailing spaces should work with annotated tests'
413
419
] ,
414
420
'skipped-suite-test.js' : [
415
421
'should work with fixme root'
416
422
] ,
417
423
'todo-list-page-test.js' : [
418
- 'should work with failing tests' ,
424
+ 'playwright should work with failing tests' ,
419
425
'should work with fixme root'
420
426
]
421
427
}
@@ -428,9 +434,8 @@ versions.forEach((version) => {
428
434
const tests = events . filter ( event => event . type === 'test' ) . map ( event => event . content )
429
435
430
436
const newTests = tests . filter ( test =>
431
- test . resource ===
432
- 'landing-page-test.js.should work with skipped tests' ||
433
- test . resource === 'landing-page-test.js.should work with fixme'
437
+ test . resource . endsWith ( 'should work with skipped tests' ) ||
438
+ test . resource . endsWith ( 'should work with fixme' )
434
439
)
435
440
// no retries
436
441
assert . equal ( newTests . length , 2 )
0 commit comments