Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							3180bc9804 
							
						 
					 
					
						
						
							
							fix(types): make most fixtures non-undefined ( #20573 )  
						
						... 
						
						
						
						Fixes  #20416 . 
					
						2023-02-02 13:11:50 -08:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							f46883e58e 
							
						 
					 
					
						
						
							
							feat(expect): add GenericAssertions documentation ( #20564 )  
						
						... 
						
						
						
						References #20432 . 
						
						
					 
					
						2023-02-01 16:55:52 -08:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							635b47025e 
							
						 
					 
					
						
						
							
							chore: expose project dependencies api ( #20546 )  
						
						
						
						
					 
					
						2023-02-01 08:39:07 -08:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							9c6c31a442 
							
						 
					 
					
						
						
							
							fix(types): update PlaywrightTestConfig types ( #20540 )  
						
						... 
						
						
						
						This makes errors more focused on the custom properties.
References #20416 . 
						
						
					 
					
						2023-01-31 15:02:01 -08:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							fe1dd7818d 
							
						 
					 
					
						
						
							
							chore: extract task runner for global setup ( #20345 )  
						
						
						
						
					 
					
						2023-01-25 15:38:23 -08:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							147bb6b292 
							
						 
					 
					
						
						
							
							chore: run global setup before onBegin ( #20285 )  
						
						
						
						
					 
					
						2023-01-23 17:44:23 -08:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							e08168e16e 
							
						 
					 
					
						
						
							
							chore: temporarily remove project and global setup, store ( #20181 )  
						
						
						
						
					 
					
						2023-01-18 12:56:03 -08:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							e065d608b6 
							
						 
					 
					
						
						
							
							chore: introduce defineConfig for easier JS typing ( #20061 )  
						
						... 
						
						
						
						Fixes https://github.com/microsoft/playwright/issues/19694  
						
						
					 
					
						2023-01-12 13:12:02 -08:00 
						 
				 
			
				
					
						
							
							
								Max Schmitt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							0fe327c21b 
							
						 
					 
					
						
						
							
							chore: return Promise<any> in {page,context}.route ( #20005 )  
						
						... 
						
						
						
						Fixes https://github.com/microsoft/playwright/issues/19855 
Closes https://github.com/microsoft/playwright/pull/19856  
						
						
					 
					
						2023-01-10 18:07:17 +01:00 
						 
				 
			
				
					
						
							
							
								Yury Semikhatsky 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							137070d889 
							
						 
					 
					
						
						
							
							Revert "chore: hide setup, store, TestProject.setupMatch, storageStat… ( #19756 )  
						
						... 
						
						
						
						…eName (#19442 )"
This reverts commit 92dd734e0471cc1b4724ad965e4389ed5235a9f1. 
						
						
					 
					
						2022-12-28 15:39:31 -08:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							675f0eb4a0 
							
						 
					 
					
						
						
							
							chore: report error location for fatal errors ( #19610 )  
						
						
						
						
					 
					
						2022-12-21 09:36:59 -08:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							3afd83c8cc 
							
						 
					 
					
						
						
							
							chore: withdraw locator.enumerate ( #19484 )  
						
						
						
						
					 
					
						2022-12-15 10:13:56 -08:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							0e2732decf 
							
						 
					 
					
						
						
							
							feat(api): introduce expect().toPass ( #19463 )  
						
						
						
						
					 
					
						2022-12-14 19:23:13 -08:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							17a0074459 
							
						 
					 
					
						
						
							
							feat(api): introduce Locator.all, enumerate ( #19461 )  
						
						
						
						
					 
					
						2022-12-14 16:42:50 -08:00 
						 
				 
			
				
					
						
							
							
								Yury Semikhatsky 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							92dd734e04 
							
						 
					 
					
						
						
							
							chore: hide setup, store, TestProject.setupMatch, storageStateName ( #19442 )  
						
						
						
						
					 
					
						2022-12-13 22:48:38 -08:00 
						 
				 
			
				
					
						
							
							
								Fernando Garcia Llorente 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							cd4ccdfa29 
							
						 
					 
					
						
						
							
							feat: allow options in automatic screenshots ( #19143 )  
						
						... 
						
						
						
						Closes  #9983  
Allowing Automatic Screenshots in `PlaywrightTestConfig` to have
`fullPage` & `omitBackground` as optional parameters. 
					
						2022-12-07 08:45:33 -08:00 
						 
				 
			
				
					
						
							
							
								Yury Semikhatsky 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							1b3e53697b 
							
						 
					 
					
						
						
							
							chore: TestStorage => TestStore ( #19308 )  
						
						
						
						
					 
					
						2022-12-06 13:33:43 -08:00 
						 
				 
			
				
					
						
							
							
								Yury Semikhatsky 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							3c1b26b9f1 
							
						 
					 
					
						
						
							
							feat: make storage a global variable ( #19283 )  
						
						
						
						
					 
					
						2022-12-05 21:37:37 -08:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							81c8620bfe 
							
						 
					 
					
						
						
							
							chore: upgrade internal types to support TypeScript 4.9.3 ( #19280 )  
						
						... 
						
						
						
						Fixes https://github.com/microsoft/TypeScript/issues/51619 
Co-authored-by: Max Schmitt <max@schmitt.mx> 
						
						
					 
					
						2022-12-05 17:22:25 -08:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							89bdaf2441 
							
						 
					 
					
						
						
							
							chore: rename ScreenshotAssertions to SnapshotAssertions ( #19150 )  
						
						
						
						
					 
					
						2022-11-29 16:57:03 -08:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							f9a32e0927 
							
						 
					 
					
						
						
							
							chore: follow up to deprecation changes ( #19025 )  
						
						
						
						
					 
					
						2022-11-23 12:32:14 -08:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							f97dcd4c79 
							
						 
					 
					
						
						
							
							docs: annotate deprecated methods ( #19005 )  
						
						
						
						
					 
					
						2022-11-23 08:40:47 -08:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							03d2b2ecbf 
							
						 
					 
					
						
						
							
							chore: move doc-specific code into documentation ( #18933 )  
						
						
						
						
					 
					
						2022-11-19 11:26:11 -08:00 
						 
				 
			
				
					
						
							
							
								Yury Semikhatsky 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							05fb3e6de8 
							
						 
					 
					
						
						
							
							Revert "chore: hide TestProject.setup and TestInfo.storage ( #18800 )" ( #18836 )  
						
						... 
						
						
						
						Now that the patch has been cherry-picked to the release branch
reverting it on main.
This reverts commit 6deba5dc21f8945635663119c1cd5db5c3776444. 
						
						
					 
					
						2022-11-16 11:23:10 -08:00 
						 
				 
			
				
					
						
							
							
								Yury Semikhatsky 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							6deba5dc21 
							
						 
					 
					
						
						
							
							chore: hide TestProject.setup and TestInfo.storage ( #18800 )  
						
						
						
						
					 
					
						2022-11-14 17:03:01 -08:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							bc6617b4ca 
							
						 
					 
					
						
						
							
							chore: verify tab groups in docs during lint ( #18768 )  
						
						... 
						
						
						
						This extracts the logic from playwright.dev so that we get early
warnings. 
						
						
					 
					
						2022-11-14 13:05:05 -08:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							194abc35cd 
							
						 
					 
					
						
						
							
							Revert  #18561  "feat(test runner): test.reset() to reset options to default/config value" ( #18704 )  
						
						... 
						
						
						
						This reverts commit 6fef227f43f122d45327768addc19bb96db0f6d5.
Not shipping in 1.28. 
						
						
					 
					
						2022-11-10 14:45:05 -08:00 
						 
				 
			
				
					
						
							
							
								Andrey Lushnikov 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							f52fa4ceba 
							
						 
					 
					
						
						
							
							chore(snapshotPathTemplate): address review comments ( #18702 )  
						
						
						
						
					 
					
						2022-11-10 11:37:41 -08:00 
						 
				 
			
				
					
						
							
							
								Andrey Lushnikov 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							6d491f928d 
							
						 
					 
					
						
						
							
							feat(playwright-test): introduce snapshotPathTemplate configuration ( #18568 )  
						
						... 
						
						
						
						This configuration option allows to set a string with template
values for precise control over snapshot path location.
An example of `snapshotPathTemplate` usage:
```ts
// playwright.config.ts
// Notice the `testDir` configuration!
export default {
  testDir: './tests',
  snapshotPathTemplate: './__screenshots__/{platform}/{projectName}/{testFilePath}/{arg}{ext}',
}
```
Currently supported "magic tokens" inside the `snapshotPathTemplate`
are:
- `{testDir}` - project's `testDir`
- `{snapshotDir}` - project's `snapshotDir`
- `{platform}` - `process.platform`
- `{projectName}` - Project's sanitized name
- `{testFileDir}` - Directories in relative path from `testDir` to test
  file path (e.g. `page/` in the example below)
- `{testFileName}` - Test file name (with extension) (e.g.
  `page-click.spec.ts` in the example below)
- `{testFilePath}` - Relative path from `testDir` to test file path
  (e.g. `page/page-click.spec.ts` in the example below)
- `{ext}` - snapshot extension (with dots)
- `{arg}` - joined snapshot name parts, without extension (e.g.
`foo/bar/baz` in the example below)
- `{snapshotSuffix}` - `testInfo.snapshotSuffix` value.
Consider the following file structure:
```
playwright.config.ts
tests/
└── page/
    └── page-click.spec.ts
```
The following `page-click.spec.ts`:
```ts
// page-click.spec.ts
import { test, expect } from '@playwright/test';
test('should work', async ({ page }) => {
  await expect(page).toHaveScreenshot(['foo', 'bar', 'baz.png']);
});
```
Fixes  #7792  
						
						
					 
					
						2022-11-09 15:29:07 -08:00 
						 
				 
			
				
					
						
							
							
								Yury Semikhatsky 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							d5494edf71 
							
						 
					 
					
						
						
							
							feat(runner): TestOptions.storageStateName ( #18587 )  
						
						
						
						
					 
					
						2022-11-07 16:27:38 -08:00 
						 
				 
			
				
					
						
							
							
								Yury Semikhatsky 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							25dc0bfacb 
							
						 
					 
					
						
						
							
							feat(runner): change storage fixture to TestInfo.storage() ( #18584 )  
						
						
						
						
					 
					
						2022-11-04 14:28:25 -07:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							6fef227f43 
							
						 
					 
					
						
						
							
							feat(test runner): test.reset() to reset options to default/config value ( #18561 )  
						
						
						
						
					 
					
						2022-11-04 09:03:29 -07:00 
						 
				 
			
				
					
						
							
							
								Yury Semikhatsky 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							45aa82242d 
							
						 
					 
					
						
						
							
							feat(runner): storage fixture ( #18522 )  
						
						
						
						
					 
					
						2022-11-02 20:22:35 -07:00 
						 
				 
			
				
					
						
							
							
								Yury Semikhatsky 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							7337dd4e28 
							
						 
					 
					
						
						
							
							chore: revert project.{stage,run} ( #18462 )  
						
						
						
						
					 
					
						2022-10-31 14:04:24 -07:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							2d3b2a0768 
							
						 
					 
					
						
						
							
							feat(test runner): test.describe.configure({ retries, timeout }) ( #18388 )  
						
						... 
						
						
						
						References #10825 . 
						
						
					 
					
						2022-10-27 15:53:27 -07:00 
						 
				 
			
				
					
						
							
							
								Yury Semikhatsky 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							11eb719d13 
							
						 
					 
					
						
						
							
							feat(runner): project run: "always" ( #18160 )  
						
						... 
						
						
						
						Projects marked with `run: 'always'` are non shard-able and run after
failures. 
						
						
					 
					
						2022-10-18 17:18:45 -07:00 
						 
				 
			
				
					
						
							
							
								Yury Semikhatsky 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							08a3a269cd 
							
						 
					 
					
						
						
							
							feat(runner): project.canShard ( #18037 )  
						
						
						
						
					 
					
						2022-10-12 14:34:22 -07:00 
						 
				 
			
				
					
						
							
							
								Yury Semikhatsky 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							3b8f63d703 
							
						 
					 
					
						
						
							
							feat(runner): project.stopOnFailure ( #18009 )  
						
						
						
						
					 
					
						2022-10-11 17:04:01 -07:00 
						 
				 
			
				
					
						
							
							
								Yury Semikhatsky 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							3592269caf 
							
						 
					 
					
						
						
							
							feat(runner): project.stage ( #17971 )  
						
						
						
						
					 
					
						2022-10-10 17:56:18 -07:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							6750a02506 
							
						 
					 
					
						
						
							
							fix(api): hide TestConfig.groups ( #17853 )  
						
						... 
						
						
						
						Also fix types for `FullConfig.configFile`. 
						
						
					 
					
						2022-10-05 14:24:14 -07:00 
						 
				 
			
				
					
						
							
							
								Stephen Li 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							0b1b718afc 
							
						 
					 
					
						
						
							
							feat(core): type addInitScript function arg ( #17651 )  
						
						... 
						
						
						
						Allows autocomplete on the arg passed to the init script
```ts
await page.addInitScript((arg) => {
    window.localStorage.setItem('init_user_state', JSON.stringify(arg.initUserState)) // arg was previously 'any'
}, {
    initUserState: { foo: 'bar' },
})
``` 
						
						
					 
					
						2022-10-05 09:08:30 -07:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							a97deb1600 
							
						 
					 
					
						
						
							
							chore: hide reporter project id ( #17710 )  
						
						
						
						
					 
					
						2022-09-29 12:51:06 -07:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							d8f67eb75d 
							
						 
					 
					
						
						
							
							feat(api): introduce getByTestId ( #17645 )  
						
						
						
						
					 
					
						2022-09-27 21:06:07 -07:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							8ad201b802 
							
						 
					 
					
						
						
							
							chore: add snippet to the json report ( #17567 )  
						
						
						
						
					 
					
						2022-09-27 13:23:08 -07:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							df143031e7 
							
						 
					 
					
						
						
							
							chore: move protocol and trace types into the top-level packages ( #17486 )  
						
						
						
						
					 
					
						2022-09-20 18:41:51 -07:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							854c783019 
							
						 
					 
					
						
						
							
							chore: project.id, configFile in reporter apis ( #17346 )  
						
						
						
						
					 
					
						2022-09-14 14:56:28 -07:00 
						 
				 
			
				
					
						
							
							
								nate-ro 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							409bab59ea 
							
						 
					 
					
						
						
							
							chore: added starting time of test to the base json reporter ( #16885 )  
						
						
						
						
					 
					
						2022-08-30 20:03:21 -07:00 
						 
				 
			
				
					
						
							
							
								Yury Semikhatsky 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							b51b7e7f67 
							
						 
					 
					
						
						
							
							fix: devices is a map not an array ( #16729 )  
						
						
						
						
					 
					
						2022-08-22 11:34:53 -07:00 
						 
				 
			
				
					
						
							
							
								Elizaveta Bezyaikna 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							9f22ae9aa9 
							
						 
					 
					
						
						
							
							chore: add id for each test to JSONReporter ( #16494 )  
						
						
						
						
					 
					
						2022-08-15 09:28:21 -07:00 
						 
				 
			
				
					
						
							
							
								Max Schmitt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							e725b5f8a9 
							
						 
					 
					
						
						
							
							fix(esm): fix TS type check with NodeNext mode ( #16340 )  
						
						
						
						
					 
					
						2022-08-09 20:06:06 +02:00