Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: new release candidate #34

Merged
merged 1 commit into from
Jan 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .changeset/funny-pugs-kick.md

This file was deleted.

22 changes: 0 additions & 22 deletions .changeset/strong-kangaroos-fly.md

This file was deleted.

30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
### Changelog

## 0.12.0

### Minor Changes

- [#35](https://github.com/SebastianSedzik/playwright-decorators/pull/35) [`8ba55c6`](https://github.com/SebastianSedzik/playwright-decorators/commit/8ba55c6463a1f431896496f47f78730dded43a6c) Thanks [@SebastianSedzik](https://github.com/SebastianSedzik)! - Enhanced TypeScript support:

- constrained the `@suite` decorator to class contexts only.
- constrained the `@test` decorator to class method context only. Type check of test method arguments.
- exported the `TestArgs` type to provide validity within test methods.

```ts
import { suite, test, TestArgs } from 'playwright-decorators'

@suite()
class ExampleSuite {
@test()
async exampleTest({ page }: TestArgs) {
// <- TestArgs ensures correct types of arguments
// ...
}
}
```

### Patch Changes

- [#29](https://github.com/SebastianSedzik/playwright-decorators/pull/29) [`7398cc2`](https://github.com/SebastianSedzik/playwright-decorators/commit/7398cc2a9aea7c8df3db76bd82714ae94b50011e) Thanks [@SebastianSedzik](https://github.com/SebastianSedzik)! - Fixes of `@skip` and `@annotate` decorators:

- Pass `reason` from `@skip` decorator to the reporter.
- Added support for annotations on skipped tests.

## 0.11.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "playwright-decorators",
"version": "0.11.2",
"version": "0.12.0",
"description": "Decorators for writing Playwright based tests.",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down