Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							fdda759a9d 
							
						 
					 
					
						
						
							
							feat(parallel): allow setting enclosing scope parallel mode ( #11822 )  
						
						
						
						
					 
					
						2022-02-02 20:44:11 -08:00 
						 
				 
			
				
					
						
							
							
								Andrey Lushnikov 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							ba0c7e679b 
							
						 
					 
					
						
						
							
							feat(test-runner): support expect.soft ( #11800 )  
						
						... 
						
						
						
						Soft expects will still fail the test, but will not abort it's execution. As a consequence of this:
-  `TestResult` now might have multiple errors, which is reflected with a new `testResult.erros: TestError[]` field.
- `TestInfo` now might have multiple errors as well, which is reflected with a new `testInfo.errors: TestError[]` field.
Fixes  #7819  
						
						
					 
					
						2022-02-02 18:33:51 -08:00 
						 
				 
			
				
					
						
							
							
								Max Schmitt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							c752b28516 
							
						 
					 
					
						
						
							
							chore: pin production dependencies ( #11793 )  
						
						
						
						
					 
					
						2022-02-02 11:14:41 +01:00 
						 
				 
			
				
					
						
							
							
								Andrey Lushnikov 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							b0daa7754f 
							
						 
					 
					
						
						
							
							feat: filter stack traces to exclude test runner frames ( #11795 )  
						
						... 
						
						
						
						Before:
```bash
Running 1 test using 1 worker
  1) [chromium] › tests/example.spec.ts:3:1 › should work ==========================================
    Error: expect(received).toBe(expected) // Object.is equality
    Expected: 2
    Received: 1
      2 |
      3 | test('should work', async({page}) => {
    > 4 |   expect(1).toBe(2);
        |             ^
      5 | });
      6 |
        at Proxy.<anonymous> (/Users/andreylushnikov/prog/playwright/packages/playwright-test/src/expect.ts:151:30)
        at /Users/andreylushnikov/tmp/tests/example.spec.ts:4:13
        at /Users/andreylushnikov/prog/playwright/packages/playwright-test/src/workerRunner.ts:335:13
        at runNextTicks (node:internal/process/task_queues:61:5)
        at processImmediate (node:internal/timers:437:9)
        at TestInfoImpl._runFn (/Users/andreylushnikov/prog/playwright/packages/playwright-test/src/testInfo.ts:164:7)
        at WorkerRunner._runTestWithBeforeHooks (/Users/andreylushnikov/prog/playwright/packages/playwright-test/src/workerRunner.ts:317:24)
        at TimeoutRunner.run (/Users/andreylushnikov/prog/playwright/packages/playwright-core/src/utils/async.ts:48:14)
        at TestInfoImpl._runWithTimeout (/Users/andreylushnikov/prog/playwright/packages/playwright-test/src/testInfo.ts:151:7)
        at WorkerRunner._runTestOrAllHook (/Users/andreylushnikov/prog/playwright/packages/playwright-test/src/workerRunner.ts:276:5)
        at WorkerRunner._runSuite (/Users/andreylushnikov/prog/playwright/packages/playwright-test/src/workerRunner.ts:190:11)
        at WorkerRunner.run (/Users/andreylushnikov/prog/playwright/packages/playwright-test/src/workerRunner.ts:137:9)
        at process.<anonymous> (/Users/andreylushnikov/prog/playwright/packages/playwright-test/src/worker.ts:87:5)
```
after:
```
Running 1 test using 1 worker
  1) [chromium] › tests/example.spec.ts:3:1 › should work ==========================================
    Error: expect(received).toBe(expected) // Object.is equality
    Expected: 2
    Received: 1
      2 |
      3 | test('should work', async({page}) => {
    > 4 |   expect(1).toBe(2);
        |             ^
      5 | });
      6 |
        at /Users/andreylushnikov/tmp/tests/example.spec.ts:4:13
``` 
						
						
					 
					
						2022-02-01 18:40:44 -08:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							ceb3027bdf 
							
						 
					 
					
						
						
							
							chore(test-runner): force colors in worker processes ( #11799 )  
						
						
						
						
					 
					
						2022-02-01 17:29:15 -08:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							6e2fcc4700 
							
						 
					 
					
						
						
							
							chore: do not expose suite load error ( #11797 )  
						
						
						
						
					 
					
						2022-02-01 15:34:16 -08:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							f875ebe730 
							
						 
					 
					
						
						
							
							fix(test-runner): respect source maps when reporting test files ( #11770 )  
						
						
						
						
					 
					
						2022-02-01 13:04:54 -08:00 
						 
				 
			
				
					
						
							
							
								Max Schmitt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							028afb167b 
							
						 
					 
					
						
						
							
							chore: bump production dependencies ( #11787 )  
						
						
						
						
					 
					
						2022-02-01 21:27:34 +01:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							a3bc911a3d 
							
						 
					 
					
						
						
							
							fix(debug): don't apply infinite timeouts when using debugger ( #11785 )  
						
						
						
						
					 
					
						2022-02-01 11:51:37 -08:00 
						 
				 
			
				
					
						
							
							
								Caio Agiani 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							b6b60decdf 
							
						 
					 
					
						
						
							
							fix: typos ( #11789 )  
						
						
						
						
					 
					
						2022-02-01 11:09:41 -08:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							3a5e8184b5 
							
						 
					 
					
						
						
							
							fix(html-reporter): open tests from required file ( #11784 )  
						
						
						
						
					 
					
						2022-02-01 11:01:52 -08:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							c82f2641d7 
							
						 
					 
					
						
						
							
							fet(list-files): report per-project test dir and filters ( #11764 )  
						
						
						
						
					 
					
						2022-02-01 08:08:56 -08:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							c5d852f1bb 
							
						 
					 
					
						
						
							
							fix(test-runner): escape backslashes in win cli ( #11763 )  
						
						
						
						
					 
					
						2022-01-31 17:48:05 -08:00 
						 
				 
			
				
					
						
							
							
								Andrey Lushnikov 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							2336692e8a 
							
						 
					 
					
						
						
							
							feat: support clarification message for expect ( #11735 )  
						
						... 
						
						
						
						The clarification message is displayed in the HTML report as the name of the step:

It is also shown in terminal output:

Fixes  #7816  
						
						
					 
					
						2022-01-31 17:14:59 -08:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							2b55adaafa 
							
						 
					 
					
						
						
							
							feat(breaking): always report onBegin/onEnd, report file errors ( #11758 )  
						
						
						
						
					 
					
						2022-01-31 17:09:04 -08:00 
						 
				 
			
				
					
						
							
							
								Andrey Lushnikov 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							3a4e506479 
							
						 
					 
					
						
						
							
							chore: extract SigIntWatcher ( #11749 )  
						
						... 
						
						
						
						This is to reduce the size of the long `_run` method in the `runner.ts`.
It also might come handy around the codebase. 
						
						
					 
					
						2022-01-31 08:51:22 -08:00 
						 
				 
			
				
					
						
							
							
								Andrey Lushnikov 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							b58b004f0f 
							
						 
					 
					
						
						
							
							fix: run reporter.onEnd after webserver teardown ( #11712 )  
						
						... 
						
						
						
						Fixes  #11647  
					
						2022-01-31 06:19:33 -08:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							eeebcd53ae 
							
						 
					 
					
						
						
							
							chore(test runner): extract TestInfoImpl ( #11725 )  
						
						
						
						
					 
					
						2022-01-28 17:39:42 -08:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							30f3cbd6da 
							
						 
					 
					
						
						
							
							fix(fixtures): make sure defaultLaunchOptions are always there ( #11713 )  
						
						
						
						
					 
					
						2022-01-28 10:51:55 -08:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							29a84b2df8 
							
						 
					 
					
						
						
							
							chore: allow pre-processing scripts ( #11702 )  
						
						
						
						
					 
					
						2022-01-27 14:32:23 -08:00 
						 
				 
			
				
					
						
							
							
								Feng Yu 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							0698254253 
							
						 
					 
					
						
						
							
							docs: fix broken link ( #11687 )  
						
						... 
						
						
						
						fix  #11680  
					
						2022-01-27 13:00:09 -08:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							b1fbc4fdbe 
							
						 
					 
					
						
						
							
							fix(test runner): resolve tsconfig for each file ( #11662 )  
						
						... 
						
						
						
						This allows us to properly handle path mappings
that are not too ambiguous. 
						
						
					 
					
						2022-01-26 18:28:42 -08:00 
						 
				 
			
				
					
						
							
							
								divdavem 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							512a245f13 
							
						 
					 
					
						
						
							
							feat(test-runner): wait for a url before starting tests ( #10138 )  
						
						... 
						
						
						
						The webServer configuration in @playwright/test now accepts a url as an
alternative to a port number to wait for a url to return a 2xx status code. 
						
						
					 
					
						2022-01-26 16:32:58 -08:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							19820de7a9 
							
						 
					 
					
						
						
							
							fix(test runner): correctly save videos when running remotely ( #11633 )  
						
						
						
						
					 
					
						2022-01-26 07:43:07 -08:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							4f42484c64 
							
						 
					 
					
						
						
							
							chore(test runner): simplify runTestWithBeforeHooks ( #11629 )  
						
						
						
						
					 
					
						2022-01-25 16:46:50 -08:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							800b813d4b 
							
						 
					 
					
						
						
							
							chore(test runner): prepare to per-fixture timeout ( #11605 )  
						
						... 
						
						
						
						This reworks DeadlineRunner to use exception to signal timeout. This way,
we'll be able to run fixtures against a shared deadline vs their own
deadline and still get an easy control-flow timeout handling. 
						
						
					 
					
						2022-01-25 11:22:28 -08:00 
						 
				 
			
				
					
						
							
							
								Andrey Lushnikov 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							42876a0528 
							
						 
					 
					
						
						
							
							fix: support PWDEBUG=0 to disable debug ( #11611 )  
						
						... 
						
						
						
						Fixes  #11606  
					
						2022-01-25 08:40:24 -08:00 
						 
				 
			
				
					
						
							
							
								Ross Wollman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							64e7557fb9 
							
						 
					 
					
						
						
							
							fix: falsey behavior in route.continue, page.post, testInfo.attach ( #11421 )  
						
						... 
						
						
						
						In several of the Playwright APIs, falsey values were not handled correctly. This changeset adds tests (and some fixes):
- route.continue: If options.postData was the empty string, the continue failed to override the post data.
- page.post (application/json with options.data: false|''|0|null): Raw falsey values were getting dropped (i.e. you can't do the equivalent of curl --header application/json … -d 'false'). This has been fixed with most values across all browsers, but an additional fix is needed for 'null' which the channel serializer treats extra specially.
- testInfo.attach: This didn't get reported as an error when options.path was the empty string, but should have been.
#11413  (and its fix  #11414 ) inspired this search as they are the same
class of bug. 
						
						
					 
					
						2022-01-24 15:06:36 -08:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							9542b007cf 
							
						 
					 
					
						
						
							
							fix(esm): don't emit module shorthand warning ( #11596 )  
						
						
						
						
					 
					
						2022-01-24 11:22:56 -08:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							0b99d83911 
							
						 
					 
					
						
						
							
							chore: include config dir in quick list report ( #11563 )  
						
						
						
						
					 
					
						2022-01-22 17:02:46 -08:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							baf0e5b47a 
							
						 
					 
					
						
						
							
							chore: implement lightweight test listing ( #11551 )  
						
						
						
						
					 
					
						2022-01-21 19:11:22 -08:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							6b3e596fd8 
							
						 
					 
					
						
						
							
							fix(baseurl): support path-less baseurl ( #11527 )  
						
						
						
						
					 
					
						2022-01-20 18:11:56 -08:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							50fa839e64 
							
						 
					 
					
						
						
							
							chore: include transpilation mode in the compute cache hash ( #11521 )  
						
						
						
						
					 
					
						2022-01-20 13:33:40 -08:00 
						 
				 
			
				
					
						
							
							
								Ross Wollman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							33f32368e5 
							
						 
					 
					
						
						
							
							fix(test runner): dispatcher transformation of empty attachments ( #11414 )  
						
						
						
						
					 
					
						2022-01-17 18:47:24 -08:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							8ecf581b45 
							
						 
					 
					
						
						
							
							chore: focus by line should override only ( #11427 )  
						
						
						
						
					 
					
						2022-01-16 08:47:09 -08:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							8b0ef4ad6b 
							
						 
					 
					
						
						
							
							chore: introduce oop testing mode for debugging ( #11428 )  
						
						
						
						
					 
					
						2022-01-15 19:25:32 -08:00 
						 
				 
			
				
					
						
							
							
								Max Schmitt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							badb5b4d13 
							
						 
					 
					
						
						
							
							chore(pw-test): forward web-server stdout to debug target ( #11384 )  
						
						
						
						
					 
					
						2022-01-13 23:55:46 +01:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							9d5bf0e90d 
							
						 
					 
					
						
						
							
							fix(test runner): fixture teardown double error, testInfo.attach() ( #11365 )  
						
						... 
						
						
						
						- Use file path, not content to calculate the attachment hash.
- Always cleanup fixture from the list on teardown, to avoid reporting
  teardown error multiple times: from the test, and from the cleanup. 
						
						
					 
					
						2022-01-13 10:38:47 -08:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							feb7148b3f 
							
						 
					 
					
						
						
							
							chore: don't write into stdout from the test runner, use reporters instead ( #11367 )  
						
						
						
						
					 
					
						2022-01-12 19:52:40 -08:00 
						 
				 
			
				
					
						
							
							
								Andrey Lushnikov 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							9285596806 
							
						 
					 
					
						
						
							
							chore: cut v1.18.0 ( #11358 )  
						
						... 
						
						
						
						Drive-by: fix the `//utils/bump_package_versions.js` script. 
						
						
					 
					
						2022-01-12 11:50:44 -08:00 
						 
				 
			
				
					
						
							
							
								Andrey Lushnikov 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							6f932fcb4a 
							
						 
					 
					
						
						
							
							fix: default list reporter should dump stderr to stderr ( #11351 )  
						
						... 
						
						
						
						This is consistent with all other reporters we have in place. 
						
						
					 
					
						2022-01-12 07:43:25 -08:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							4efb30999f 
							
						 
					 
					
						
						
							
							feat(request): show request context methods as steps ( #11337 )  
						
						
						
						
					 
					
						2022-01-11 17:33:41 -08:00 
						 
				 
			
				
					
						
							
							
								Andrey Lushnikov 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							2a0930c7a4 
							
						 
					 
					
						
						
							
							docs: clarification about trailing slash in docs ( #11326 )  
						
						... 
						
						
						
						Fixes  #10557  
					
						2022-01-11 07:50:58 -08:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							da1f39fb29 
							
						 
					 
					
						
						
							
							chore(test runner): refactor worker runner parts ( #11316 )  
						
						... 
						
						
						
						This will make it easier to change in the future. 
						
						
					 
					
						2022-01-10 20:25:56 -08:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							d36ff8a96c 
							
						 
					 
					
						
						
							
							fix(test runner): remove test output for failures ( #11308 )  
						
						
						
						
					 
					
						2022-01-10 13:22:09 -08:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							14fd837e94 
							
						 
					 
					
						
						
							
							fix(test runner): hide beforeAll/afterAll hooks from the reporter api ( #11306 )  
						
						... 
						
						
						
						This api is not ready yet. 
						
						
					 
					
						2022-01-10 12:09:51 -08:00 
						 
				 
			
				
					
						
							
							
								Andrey Lushnikov 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							7b1fecc009 
							
						 
					 
					
						
						
							
							fix: default to en-US locale in all browsers in Playwright Test ( #11133 )  
						
						... 
						
						
						
						It makes sense to default to en-US by default across all our browsers in Playwright Test.
Fixes  #11127  
						
						
					 
					
						2022-01-10 08:37:55 -08:00 
						 
				 
			
				
					
						
							
							
								Michaël De Boey 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							ff5f75dc10 
							
						 
					 
					
						
						
							
							fix: pin colors to 1.4.0 ( #11274 )  
						
						
						
						
					 
					
						2022-01-09 16:18:21 -08:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							058f98d3dd 
							
						 
					 
					
						
						
							
							fix(test runner): revert error location from top frame ( #11250 )  
						
						... 
						
						
						
						This does not play nicely with some internal Playwright errors, so
it needs more tweaks. 
						
						
					 
					
						2022-01-07 11:06:47 -08:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							19460d50e4 
							
						 
					 
					
						
						
							
							chore(test runner): process-wide cache of required test files ( #11230 )  
						
						... 
						
						
						
						This is a preparation to TestRunner api, where we should be
able to run tests multiple times in the same runner process. 
						
						
					 
					
						2022-01-06 15:38:10 -08:00