playwright/tests
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
..
android chore: group tests under tests/ (2) (#13082) 2022-03-25 23:09:02 -07:00
assets feat(role): add more tests for accessible name (#13154) 2022-03-29 11:59:44 -07:00
components fix(tests): remove lock from component tests, test real experience (#13095) 2022-03-26 13:54:33 -07:00
config chore: remove/rename FullConfig._attachments (#13233) 2022-04-01 12:36:05 -07:00
electron chore: group tests under tests/ (2) (#13082) 2022-03-25 23:09:02 -07:00
library feat(screenshot): rename "size" option to "scale" (#13254) 2022-04-01 12:28:40 -07:00
page feat(role selector): allow unquoted name attribute (#13224) 2022-04-01 10:08:02 -07:00
playwright-test feat(test-runner): friendly expect errors for typos (#13229) 2022-04-01 13:38:22 -07:00
index.d.ts test: added tests for WebSocket over Socks proxy (#7235) 2021-06-24 18:50:16 +02:00
tsconfig.json chore: group tests under tests/ (2) (#13082) 2022-03-25 23:09:02 -07:00