Skip to content

Commit 1e5d9e5

Browse files
Merge pull request #26 from qavajs/pw-aliases
added support of `locator.describe()` to log alias and corresponding locator
2 parents 5c0a2d5 + 5340738 commit 1e5d9e5

File tree

4 files changed

+76
-49
lines changed

4 files changed

+76
-49
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
1010
:pencil: - chore
1111
:microscope: - experimental
1212

13+
## [3.1.0]
14+
- :rocket: updated playwright to 1.53.0
15+
- :rocket: added support of `locator.describe()` to log alias and corresponding locator
16+
1317
## [3.0.0]
1418
- :rocket: [Breaking Change] added `@cucumber/cucumber` and `@qavajs/playwright-runner-adapter` as dependencies with re-exports
1519
- :rocket: [Breaking Change] moved steps from `index.js` to `steps.js`

package-lock.json

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

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@qavajs/playwright",
3-
"version": "3.0.0",
3+
"version": "3.1.0",
44
"description": "steps to interact with playwright",
55
"main": "./index.js",
66
"scripts": {
@@ -25,16 +25,16 @@
2525
},
2626
"homepage": "https://github.com/qavajs/playwright#readme",
2727
"devDependencies": {
28-
"@types/express": "^5.0.1",
29-
"@types/node": "^22.14.1",
30-
"electron": "^35.2.0",
28+
"@types/express": "^5.0.3",
29+
"@types/node": "^24.0.1",
30+
"electron": "^36.4.0",
3131
"express": "^5.1.0",
3232
"ts-node": "^10.9.2",
3333
"typescript": "^5.8.3"
3434
},
3535
"dependencies": {
36-
"@playwright/test": "^1.52.0",
37-
"@qavajs/playwright-runner-adapter": "^1.4.1",
36+
"@playwright/test": "^1.53.0",
37+
"@qavajs/playwright-runner-adapter": "^1.4.3",
3838
"@qavajs/memory": "^1.10.2"
3939
}
4040
}

src/pageObject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,5 +136,5 @@ export function element(this: any, path: string): Locator {
136136
}
137137
}
138138
this.log(`${path} -> ${current}`);
139-
return current
139+
return current.describe(`${path} -> ${current}`)
140140
}

0 commit comments

Comments
 (0)