Skip to content

Commit e5d0d9f

Browse files
Merge pull request #7 from qavajs/po-logging
added page object logging
2 parents 9a77c61 + df2161c commit e5d0d9f

File tree

6 files changed

+204
-219
lines changed

6 files changed

+204
-219
lines changed

.github/workflows/pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
test:
1010
strategy:
1111
matrix:
12-
version: [ 22 ]
12+
version: [ 22, 24 ]
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v4

CHANGELOG.md

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

13+
## [2.1.0]
14+
- :rocket: added page object logging
15+
1316
## [2.0.2]
1417
- :beetle: added export of page object `locator` function
1518

README.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ qavajs implementation for cypress runner
33

44
## Installation
55

6-
`npm install @qavajs/cypress @qavajs/cypress-runner-adapter @qavajs/memory`
6+
```
7+
npm install @qavajs/cypress @qavajs/cypress-runner-adapter @qavajs/memory
8+
```
79

810
## Configuration
911
cypress.config.js
@@ -21,7 +23,7 @@ module.exports = defineConfig({
2123
});
2224

2325
```
24-
support file
26+
support file defines steps and loads qavajs entities (memory and page object)
2527
```typescript
2628
import defineQavajs from '@qavajs/cypress/defineQavajs';
2729
import '@qavajs/cypress';
@@ -39,11 +41,17 @@ defineQavajs({
3941

4042
## Development and testing
4143
Install dependencies
42-
`npm install`
44+
```
45+
npm install
46+
```
4347

4448

4549
Execute tests
46-
`npm run test`
50+
```
51+
npm run test
52+
```
4753

4854
Debug tests
49-
`npm run debug`
55+
```
56+
npm run debug
57+
```

lib/pageObjects.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,5 @@ export function element(path) {
8888
}
8989
method = 'find';
9090
}
91-
return current
91+
return current.as(path)
9292
}

0 commit comments

Comments
 (0)