Skip to content

Commit 7d15846

Browse files
added export of QavajsPlaywrightWorld and QavajsPlaywrightElectronWorld (#164)
1 parent db5a139 commit 7d15846

23 files changed

+186
-134
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
1414

1515
:microscope: - experimental
1616

17+
## [2.11.0]
18+
- :rocket: added export of `QavajsPlaywrightWorld` and `QavajsPlaywrightElectronWorld`
19+
1720
## [2.10.0]
1821
- :rocket: added step to interact with electron app menu
1922
```gherkin

index.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
export * from './src/IQavajsPlaywrightConfig';
1+
export * from './src/IQavajsPlaywrightConfig';
2+
export * from './src/QavajsPlaywrightWorld';
3+
export * from './src/pageObject';

package-lock.json

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@qavajs/steps-playwright",
3-
"version": "2.10.0",
3+
"version": "2.11.0",
44
"description": "qavajs steps to interact with playwright",
55
"main": "./index.js",
66
"scripts": {
@@ -34,17 +34,17 @@
3434
"@qavajs/validation": "^1.3.0",
3535
"@qavajs/webstorm-adapter": "^8.0.0",
3636
"@types/express": "^5.0.3",
37-
"@types/node": "^24.5.1",
37+
"@types/node": "^24.5.2",
3838
"@vitest/coverage-v8": "^3.2.4",
3939
"@vitest/ui": "^3.2.4",
40-
"electron": "^38.1.2",
40+
"electron": "^38.2.0",
4141
"express": "^5.1.0",
4242
"ts-node": "^10.9.2",
4343
"typescript": "^5.9.2",
4444
"vitest": "^3.2.4"
4545
},
4646
"dependencies": {
47-
"@playwright/test": "^1.55.0"
47+
"@playwright/test": "^1.55.1"
4848
},
4949
"keywords": [
5050
"test",

src/QavajsPlaywrightWorld.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { IQavajsWorld } from '@qavajs/core';
2+
import type { Locator, ElectronApplication } from '@playwright/test';
3+
import { Playwright } from './playwright';
4+
5+
export interface QavajsPlaywrightWorld extends IQavajsWorld {
6+
playwright: Playwright
7+
element(path: string): Locator
8+
}
9+
10+
export interface QavajsPlaywrightElectronWorld extends QavajsPlaywrightWorld {
11+
playwright: Playwright & { driver: ElectronApplication, browser: ElectronApplication }
12+
}

0 commit comments

Comments
 (0)