Skip to content

Commit c40caeb

Browse files
author
Oleksandr_Halichenko
committed
added page object logging
1 parent 9a77c61 commit c40caeb

File tree

5 files changed

+203
-218
lines changed

5 files changed

+203
-218
lines changed

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)