playwright/packages/playwright
Dmitry Gozman 776b04e5ea
feat: APIRequestContext dispose reason (#30765)
Similarly to page.close, we pass test-runner specific reason to
facilitate better error messages.

```
  1) a.test.ts:10:11 › test

    Error: apiRequestContext.fetch: Fixture { request } from beforeAll cannot be reused in a test.
      - Recommended fix: use a separate { request } in the test.
      - Alternatively, manually create APIRequestContext in beforeAll and dispose it in afterAll.
    See https://playwright.dev/docs/api-testing#sending-api-requests-from-ui-tests for more details.

       9 |
      10 |       test('test', async () => {
    > 11 |         await context.fetch('http://example.com');
         |                       ^
      12 |       });
      13 |
```

Closes #29260.
2024-05-13 18:51:30 -07:00
..
bundles feat(esm): support import attributes (#30482) 2024-04-23 10:13:01 -07:00
src feat: APIRequestContext dispose reason (#30765) 2024-05-13 18:51:30 -07:00
types chore: fix typos (#30645) 2024-05-08 19:40:03 +01:00
.eslintrc.js chore: strengthen linting (#29669) 2024-02-26 16:52:28 -08:00
.npmignore chore: make @playwright/test depend on playwright (#26946) 2023-09-08 14:23:35 -07:00
cli.js chore: split cli processing into cli endpoint and program (#29131) 2024-01-23 15:22:09 -08:00
index.d.ts chore: migrate to monorepo (#9421) 2021-10-11 16:52:17 +02:00
index.js chore: migrate to monorepo (#9421) 2021-10-11 16:52:17 +02:00
index.mjs chore: migrate to monorepo (#9421) 2021-10-11 16:52:17 +02:00
jsx-runtime.js fix: pass key attribute from jsx to component test (#30426) 2024-04-26 09:49:44 -07:00
jsx-runtime.mjs chore: make @playwright/test depend on playwright (#26946) 2023-09-08 14:23:35 -07:00
package.json chore: set minimum Node.js requirement to 18 (#30684) 2024-05-08 17:41:27 +01:00
test.d.ts chore: make @playwright/test depend on playwright (#26946) 2023-09-08 14:23:35 -07:00
test.js chore: remove manual __esModule override (#28935) 2024-01-10 16:28:08 -08:00
test.mjs fix: merge{Tests,Expects} via ESM imports (#27630) 2023-10-17 00:09:44 +02:00
ThirdPartyNotices.txt feat(esm): support import attributes (#30482) 2024-04-23 10:13:01 -07:00