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 #50

Merged
merged 1 commit into from
Jan 7, 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
5 changes: 0 additions & 5 deletions .changeset/sour-files-remember.md

This file was deleted.

32 changes: 19 additions & 13 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
### Changelog

## 0.14.2

### Patch Changes

- [#49](https://github.com/SebastianSedzik/playwright-decorators/pull/49) [`f76265e`](https://github.com/SebastianSedzik/playwright-decorators/commit/f76265e15a56cba54839a4f51bafa5c5aaa0a20b) Thanks [@dependabot](https://github.com/apps/dependabot)! - Bump development dependencies

## 0.14.1

### Patch Changes
Expand All @@ -17,7 +23,7 @@
Learn more about debug mode: https://playwright.dev/docs/debug

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

// Debug selected test suite(s)
@debug() // <-- Decorate suite with @debug()
Expand All @@ -41,7 +47,7 @@
Tests or suites without the `@preview` decorator will not be excluded.

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

// Preview selected test suite(s)
@preview() // <-- Decorate suite with @preview()
Expand Down Expand Up @@ -70,37 +76,37 @@
- [#38](https://github.com/SebastianSedzik/playwright-decorators/pull/38) [`dbea0b6`](https://github.com/SebastianSedzik/playwright-decorators/commit/dbea0b680f302cc5381406ef4467cd48afb2fee6) Thanks [@SebastianSedzik](https://github.com/SebastianSedzik)! - Added support for creating custom test and suite decorator

```ts
import { createSuiteAndTestDecorator } from 'playwright-decorators'
import playwright from '@playwright/test'
import { createSuiteAndTestDecorator } from "playwright-decorators";
import playwright from "@playwright/test";

const mySuiteAndTestDecorator = createSuiteAndTestDecorator(
'mySuiteAndTestDecorator',
"mySuiteAndTestDecorator",
({ suite }) => {
suite.initialized(() => {
/** run custom code when suite is initialized **/
})
});
},
({ test }) => {
test.beforeTest(() => {
/** run custom code before test execution **/
})
});
test.afterTest(() => {
/** run custom code after test execution **/
})
});

playwright.beforeEach(() => {
/** run custom code before each test execution **/
})
}
)
});
},
);
```

### Patch Changes

- [#38](https://github.com/SebastianSedzik/playwright-decorators/pull/38) [`dbea0b6`](https://github.com/SebastianSedzik/playwright-decorators/commit/dbea0b680f302cc5381406ef4467cd48afb2fee6) Thanks [@SebastianSedzik](https://github.com/SebastianSedzik)! - Export `TestInfo` type

```ts
import { suite, test, TestArgs, TestInfo } from '@playwright/test'
import { suite, test, TestArgs, TestInfo } from "@playwright/test";

@suite()
class TestSuite {
Expand All @@ -122,7 +128,7 @@
- exported the `TestArgs` type to provide validity within test methods.

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

@suite()
class ExampleSuite {
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.14.1",
"version": "0.14.2",
"description": "Decorators for writing Playwright based tests.",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down