Skip to content
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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how

:microscope: - experimental

## [2.11.0]
- :rocket: added export of `QavajsPlaywrightWorld` and `QavajsPlaywrightElectronWorld`

## [2.10.0]
- :rocket: added step to interact with electron app menu
```gherkin
Expand Down
4 changes: 3 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
export * from './src/IQavajsPlaywrightConfig';
export * from './src/IQavajsPlaywrightConfig';
export * from './src/QavajsPlaywrightWorld';
export * from './src/pageObject';
40 changes: 20 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@qavajs/steps-playwright",
"version": "2.10.0",
"version": "2.11.0",
"description": "qavajs steps to interact with playwright",
"main": "./index.js",
"scripts": {
Expand Down Expand Up @@ -34,17 +34,17 @@
"@qavajs/validation": "^1.3.0",
"@qavajs/webstorm-adapter": "^8.0.0",
"@types/express": "^5.0.3",
"@types/node": "^24.5.1",
"@types/node": "^24.5.2",
"@vitest/coverage-v8": "^3.2.4",
"@vitest/ui": "^3.2.4",
"electron": "^38.1.2",
"electron": "^38.2.0",
"express": "^5.1.0",
"ts-node": "^10.9.2",
"typescript": "^5.9.2",
"vitest": "^3.2.4"
},
"dependencies": {
"@playwright/test": "^1.55.0"
"@playwright/test": "^1.55.1"
},
"keywords": [
"test",
Expand Down
12 changes: 12 additions & 0 deletions src/QavajsPlaywrightWorld.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { IQavajsWorld } from '@qavajs/core';
import type { Locator, ElectronApplication } from '@playwright/test';
import { Playwright } from './playwright';

export interface QavajsPlaywrightWorld extends IQavajsWorld {
playwright: Playwright
element(path: string): Locator
}

export interface QavajsPlaywrightElectronWorld extends QavajsPlaywrightWorld {
playwright: Playwright & { driver: ElectronApplication, browser: ElectronApplication }
}
Loading