Yury Semikhatsky 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							9884c851ff 
							
						 
					 
					
						
						
							
							feat(expect): expose expect timeout ( #30969 )  
						
						... 
						
						
						
						Fixes https://github.com/microsoft/playwright/issues/30583  
						
						
					 
					
						2024-05-24 08:56:43 -07:00 
						 
				 
			
				
					
						
							
							
								Viktor Szépe 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							150cbcbdf3 
							
						 
					 
					
						
						
							
							chore: fix typos ( #30645 )  
						
						
						
						
					 
					
						2024-05-08 19:40:03 +01:00 
						 
				 
			
				
					
						
							
							
								Max Schmitt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							b2ded9fed1 
							
						 
					 
					
						
						
							
							fix(expect): throw better received error when no element was found ( #29890 )  
						
						... 
						
						
						
						Fixes https://github.com/microsoft/playwright/issues/29873  
						
						
					 
					
						2024-04-10 10:01:19 +02:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							9e285ce919 
							
						 
					 
					
						
						
							
							docs: do not call custom expect message an "error message" ( #29390 )  
						
						... 
						
						
						
						Fixes  #29378 . 
					
						2024-02-06 12:12:45 -08:00 
						 
				 
			
				
					
						
							
							
								George Griffiths 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							4c848c0daf 
							
						 
					 
					
						
						
							
							feat(expect): Allow expect timeout to be configured outside of the runner ( #28716 )  
						
						... 
						
						
						
						Fixes  #28702  
					
						2023-12-19 10:55:05 -08:00 
						 
				 
			
				
					
						
							
							
								Max Schmitt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							297cfdfc5f 
							
						 
					 
					
						
						
							
							chore: use ReadonlyArray for input parameters ( #28564 )  
						
						
						
						
					 
					
						2023-12-12 16:22:48 -08:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							bf4c315b09 
							
						 
					 
					
						
						
							
							fix(types): explicit ExpectMatcherState type, optional Expect arg ( #28119 )  
						
						... 
						
						
						
						Fixes  #28035 . 
					
						2023-11-13 18:37:50 -08:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							393bd36e0a 
							
						 
					 
					
						
						
							
							chore: composed->merge ( #27555 )  
						
						
						
						
					 
					
						2023-10-11 13:56:27 -07:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							fd6bf8aa2c 
							
						 
					 
					
						
						
							
							chrome: improve error messages on vscode side ( #27521 )  
						
						
						
						
					 
					
						2023-10-09 19:55:24 -07:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							70dbb9d83a 
							
						 
					 
					
						
						
							
							feat(trace): allow navigating from error to source ( #27464 )  
						
						
						
						
					 
					
						2023-10-05 14:59:59 -07:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							daba77644c 
							
						 
					 
					
						
						
							
							feat: composedExpect ( #27432 )  
						
						... 
						
						
						
						Allows to merge multiple expects with custom matchers added by
`expect.extend()`. 
						
						
					 
					
						2023-10-04 15:01:25 -07:00 
						 
				 
			
				
					
						
							
							
								Yury Semikhatsky 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							ac48a47d33 
							
						 
					 
					
						
						
							
							feat: toHaveAttribute without value ( #27418 )  
						
						... 
						
						
						
						This time not doing it in other languages due to unjustified generator
complexity.
Fixes  #27341  
						
						
					 
					
						2023-10-04 09:27:28 -07:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							a6a0257c88 
							
						 
					 
					
						
						
							
							feat(expect): allow chaining expects ( #27248 )  
						
						
						
						
					 
					
						2023-09-22 12:12:17 -07:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							49fd9500fe 
							
						 
					 
					
						
						
							
							fix: handle worker process start failure ( #27249 )  
						
						... 
						
						
						
						Worker process start failure is reported as a test error and skips other
tests from the group.
If happened during stop (e.g. from a Ctrl+C) before worker has fully
initialized, this error is ignored.
Drive-by: send SIGINT in tests to the whole tree, to better emulate
Ctrl+C behavior. 
						
						
					 
					
						2023-09-22 10:57:35 -07:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							9fe037fb63 
							
						 
					 
					
						
						
							
							chore: populate matcherResult in web assertions ( #27133 )  
						
						... 
						
						
						
						Ref https://github.com/microsoft/playwright/issues/26929  
						
						
					 
					
						2023-09-16 14:24:10 -07:00 
						 
				 
			
				
					
						
							
							
								Max Schmitt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							0d44405762 
							
						 
					 
					
						
						
							
							fix: custom expect matchers on Locator/Page/APIResponse instance ( #27117 )  
						
						... 
						
						
						
						Fixes https://github.com/microsoft/playwright/issues/27113  
						
						
					 
					
						2023-09-15 18:05:44 +02:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							81cc39ea6e 
							
						 
					 
					
						
						
							
							feat(expect): narrow down available assertions for Page/Locator/APIResponse ( #26658 )  
						
						... 
						
						
						
						Fixes  #26381 . 
					
						2023-08-23 13:14:39 -07:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							ed14bf2103 
							
						 
					 
					
						
						
							
							test: replace sendSIGINTAfter with interactWithTestRunner ( #24411 )  
						
						... 
						
						
						
						This way we can send multiple SIGINTs in tests. 
						
						
					 
					
						2023-07-25 15:46:39 -07:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							ab85b23e67 
							
						 
					 
					
						
						
							
							fix(expect): report expect "Timed out" when it actually does ( #22174 )  
						
						... 
						
						
						
						Previously, it would say "Timed out" when page was closed at test
timeout, or not say "Timed out" when at least one element matched.
Fixes  #21664 . 
						
						
					 
					
						2023-04-03 15:06:13 -07:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							8accabdb59 
							
						 
					 
					
						
						
							
							test: gardening ( #21814 )  
						
						... 
						
						
						
						Notable changes:
- `page-event-crash` is not a page test, moving out of page/.
- One of the expect tests is directly covered by another, merging them. 
						
						
					 
					
						2023-03-20 12:52:52 -07:00 
						 
				 
			
				
					
						
							
							
								Max Schmitt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							c9eac69f2b 
							
						 
					 
					
						
						
							
							fix(types): accept string in expect().toMatch() ( #21454 )  
						
						... 
						
						
						
						Fixes https://github.com/microsoft/playwright/issues/21453  
						
						
					 
					
						2023-03-07 17:53:50 +01:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							91da67fab1 
							
						 
					 
					
						
						
							
							test: remove magic headers in ttest ( #20867 )  
						
						... 
						
						
						
						Instead, explicitly import from '@playwright/test'. 
						
						
					 
					
						2023-02-14 19:20:56 -08:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							789b1c75e6 
							
						 
					 
					
						
						
							
							fix(expect): report received when timedOut during oneShot ( #20806 )  
						
						
						
						
					 
					
						2023-02-10 14:59:21 -08:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							1b941bcf2e 
							
						 
					 
					
						
						
							
							chore: simplify ttests ( #20733 )  
						
						
						
						
					 
					
						2023-02-07 15:11:44 -08:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							e64c623e61 
							
						 
					 
					
						
						
							
							feat(expect): strip down Expect types ( #20601 )  
						
						... 
						
						
						
						This only leaves:
- documented assertions;
- asymmetric matchers;
- `resolves`/`rejects`;
- `expect.extend()`;
- `expect.getState()` with selected properties.
References #20432 . 
						
						
					 
					
						2023-02-03 15:56:31 -08:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							f46883e58e 
							
						 
					 
					
						
						
							
							feat(expect): add GenericAssertions documentation ( #20564 )  
						
						... 
						
						
						
						References #20432 . 
						
						
					 
					
						2023-02-01 16:55:52 -08:00 
						 
				 
			
				
					
						
							
							
								Yury Semikhatsky 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							a03f3223c4 
							
						 
					 
					
						
						
							
							fix: trim long expect messages ( #20517 )  
						
						... 
						
						
						
						Fixes  #20324  
					
						2023-01-30 17:24:12 -08:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							eaae8ebbf3 
							
						 
					 
					
						
						
							
							chore: throw InvalidSelectorError from selector parser, add some tests ( #19636 )  
						
						
						
						
					 
					
						2022-12-21 14:27:35 -08:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							23e02dd006 
							
						 
					 
					
						
						
							
							test: unflake some timeout-dependent tests ( #19139 )  
						
						
						
						
					 
					
						2022-11-29 12:54:53 -08:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							1ec0bb277d 
							
						 
					 
					
						
						
							
							feat(expect): ensure at least one expectation check, no matter the timeout ( #18895 )  
						
						... 
						
						
						
						References #18859 . 
						
						
					 
					
						2022-11-17 19:43:10 -08:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							4e58b0c2ea 
							
						 
					 
					
						
						
							
							chore: render timed out error message when expect timeouts ( #18863 )  
						
						... 
						
						
						
						Fixes https://github.com/microsoft/playwright/issues/18859  
						
						
					 
					
						2022-11-16 17:00:42 -08:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							6a65a43e9a 
							
						 
					 
					
						
						
							
							chore: use consistent asLocator() in all logs ( #18586 )  
						
						... 
						
						
						
						References #18524 . 
						
						
					 
					
						2022-11-04 15:19:16 -07:00 
						 
				 
			
				
					
						
							
							
								Pavel Feldman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							739b64a09a 
							
						 
					 
					
						
						
							
							chore: render typed locators in the recorder ( #18162 )  
						
						
						
						
					 
					
						2022-10-18 16:39:58 -07:00 
						 
				 
			
				
					
						
							
							
								Ross Wollman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							8d639ae50e 
							
						 
					 
					
						
						
							
							chore: revert toHaveAttribute type sig and overloads ( #17406 )  
						
						... 
						
						
						
						Relates #16517 .
Revert "docs(python): add missing NotToHaveAttribute overloads (#17371 )"
This reverts commit 2e1ea296144c1d38f90815c02167a2e51f3b2b40.
Revert "docs(release-notes): add 1.26 release notes for language ports
(#17345 )"
This reverts commit 4b8a85e69d2ded2089595ff24616eb381f59cff1.
Revert "test: unflake "should support boolean attribute with options"
(#17024 )"
This reverts commit 1dc05bd4c60209542d35624d5f39b7a2a44cce3e.
Revert "fix: support toHaveAttribute(name, options) (#16941 )"
This reverts commit f30ac1d67827fbcf3f8be7a851ef81b761842c52.
Revert "feat: expect(locator).toHaveAttribute to assert attribute
presence (#16767 )"
This reverts commit 622c73cc1e677834ebdc27e95c89ff101bdccf54. 
						
						
					 
					
						2022-09-16 11:17:35 -07:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							bca13bc35a 
							
						 
					 
					
						
						
							
							feat(assertions): support toBeVisible({ visible }) ( #17207 )  
						
						
						
						
					 
					
						2022-09-09 08:33:23 -07:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							f0c5810609 
							
						 
					 
					
						
						
							
							feat(assertions): support toBeEditable({ editable }) ( #17065 )  
						
						
						
						
					 
					
						2022-09-06 12:50:45 -07:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							306ab34aa3 
							
						 
					 
					
						
						
							
							feat(assertions): support toBeEnabled({ enabled }) ( #17058 )  
						
						
						
						
					 
					
						2022-09-06 11:40:34 -07:00 
						 
				 
			
				
					
						
							
							
								Yury Semikhatsky 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							f30ac1d678 
							
						 
					 
					
						
						
							
							fix: support toHaveAttribute(name, options) ( #16941 )  
						
						
						
						
					 
					
						2022-08-30 17:53:00 -07:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							7acbd052e4 
							
						 
					 
					
						
						
							
							test: migrate some expect() tests to be more readable ( #16394 )  
						
						... 
						
						
						
						This moves some expect() matchers tests from test runner tests to page tests,
because these are implemented through a library call anyway.
Makes tests more readbable, faster and easier to test specific details. 
						
						
					 
					
						2022-08-10 15:10:25 -07:00 
						 
				 
			
				
					
						
							
							
								Max Schmitt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							98ea418124 
							
						 
					 
					
						
						
							
							fix(expect): expect.not types ( #15487 )  
						
						
						
						
					 
					
						2022-07-11 18:31:53 +02:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							85b86e19b8 
							
						 
					 
					
						
						
							
							feat(expect): ensure it works in global setup ( #13896 )  
						
						
						
						
					 
					
						2022-05-03 21:53:15 +01:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							1e1df6395f 
							
						 
					 
					
						
						
							
							chore: generate expect types ( #13439 )  
						
						
						
						
					 
					
						2022-04-11 10:42:19 -07:00 
						 
				 
			
				
					
						
							
							
								Dmitry Gozman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							4bb563b015 
							
						 
					 
					
						
						
							
							fix(expect): proper return types ( #13334 )  
						
						... 
						
						
						
						A few changes:
- `Matchers<R, T>` now carries both return and argument type.
- Based on the argument type, we apply playwright-specific Page/Locator matchers.
- Return type is usually void, unless wrapped with `expect.resolves`,
  `expect.rejects` or `expect.poll()`.
- To preserve compatibility with any extended types in the wild,
  argument type is optional. 
						
						
					 
					
						2022-04-05 16:11:11 -07:00 
						 
				 
			
				
					
						
							
							
								Ross Wollman 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							12abae7f31 
							
						 
					 
					
						
						
							
							feat(test-runner): friendly expect errors for typos ( #13229 )  
						
						... 
						
						
						
						If you typo'd an `expect` property, you got a cryptic error message:
```
Uncaught TypeError: Cannot create proxy with a non-object as target or handler
```
Now we get this nice friendly message:
```
  1) a.spec.ts:6:9 › explodes ======================================================================
    Error: expect: Property 'toBeLessThen' not found.
    Did you mean 'toBeLessThan'?
    See https://playwright.dev/docs/test-assertions  for available options and documentation.
      5 |         const { test } = pwt;
      6 |         test('explodes', () => {
    > 7 |           expect.soft(1).toBeLessThen();
        |           ^
      8 |         });
      9 |
```
Fixes  #13218  
						
						
					 
					
						2022-04-01 13:38:22 -07:00 
						 
				 
			
				
					
						
							
							
								Andrey Lushnikov 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							cfe92e1608 
							
						 
					 
					
						
						
							
							feat(test-runner): implement expect.poll ( #12815 )  
						
						... 
						
						
						
						This patch implements `expect.poll()` method that polls given
predicate until a given synchronous predicate completes.
Usage:
```js
// wait until page gets 3 frames.
await expect.poll(() => page.frames().length, {
  timeout: 1000,
  message: 'custom error message',
}).toBe(3);
```
Fixes  #10235  
						
						
					 
					
						2022-03-18 16:31:26 -07:00 
						 
				 
			
				
					
						
							
							
								Max Schmitt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							e231db1810 
							
						 
					 
					
						
						
							
							chore: restore expect.any()/expect.anything() ( #12820 )  
						
						
						
						
					 
					
						2022-03-16 21:34:41 +01: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 
						 
				 
			
				
					
						
							
							
								Joel Einbinder 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							7a02c52144 
							
						 
					 
					
						
						
							
							feat(test-runner): specific playwright types for expect ( #10670 )  
						
						
						
						
					 
					
						2021-12-13 13:42:36 -05:00 
						 
				 
			
				
					
						
							
							
								Max Schmitt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							4a96a75fe8 
							
						 
					 
					
						
						
							
							test(test-runner): add test for hiding conditional expect matchers ( #10703 )  
						
						
						
						
					 
					
						2021-12-03 14:55:16 -08:00 
						 
				 
			
				
					
						
							
							
								Max Schmitt 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							cd22072685 
							
						 
					 
					
						
						
							
							chore: enable object-curly-spacing in ESLint ( #9168 )  
						
						
						
						
					 
					
						2021-09-27 18:58:08 +02:00