@qavajs/cypress 2.0.1 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -10,6 +10,15 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
10
10
  :pencil: - chore
11
11
  :microscope: - experimental
12
12
 
13
+ ## [2.1.1]
14
+ - :beetle: replaced .as to Cypress.log in page object logging
15
+
16
+ ## [2.1.0]
17
+ - :rocket: added page object logging
18
+
19
+ ## [2.0.2]
20
+ - :beetle: added export of page object `locator` function
21
+
13
22
  ## [2.0.1]
14
23
  - :beetle: fixed issue with getting child element
15
24
 
package/README.md CHANGED
@@ -3,7 +3,9 @@ qavajs implementation for cypress runner
3
3
 
4
4
  ## Installation
5
5
 
6
- `npm install @qavajs/cypress @qavajs/cypress-runner-adapter @qavajs/memory`
6
+ ```
7
+ npm install @qavajs/cypress @qavajs/cypress-runner-adapter @qavajs/memory
8
+ ```
7
9
 
8
10
  ## Configuration
9
11
  cypress.config.js
@@ -21,7 +23,7 @@ module.exports = defineConfig({
21
23
  });
22
24
 
23
25
  ```
24
- support file
26
+ support file defines steps and loads qavajs entities (memory and page object)
25
27
  ```typescript
26
28
  import defineQavajs from '@qavajs/cypress/defineQavajs';
27
29
  import '@qavajs/cypress';
@@ -39,11 +41,17 @@ defineQavajs({
39
41
 
40
42
  ## Development and testing
41
43
  Install dependencies
42
- `npm install`
44
+ ```
45
+ npm install
46
+ ```
43
47
 
44
48
 
45
49
  Execute tests
46
- `npm run test`
50
+ ```
51
+ npm run test
52
+ ```
47
53
 
48
54
  Debug tests
49
- `npm run debug`
55
+ ```
56
+ npm run debug
57
+ ```
@@ -88,5 +88,6 @@ export function element(path) {
88
88
  }
89
89
  method = 'find';
90
90
  }
91
+ Cypress.log({ displayName: path });
91
92
  return current
92
93
  }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@qavajs/cypress",
3
- "version": "2.0.1",
3
+ "version": "2.1.1",
4
4
  "description": "qavajs for cypress runner",
5
- "main": "",
5
+ "main": "index.js",
6
6
  "scripts": {
7
7
  "debug": "cypress open --config-file test-e2e/cypress.config.js",
8
8
  "test": "cypress run --config-file test-e2e/cypress.config.js"
@@ -16,6 +16,6 @@
16
16
  "devDependencies": {
17
17
  "@qavajs/cypress-runner-adapter": "^1.0.1",
18
18
  "@qavajs/memory": "^1.10.2",
19
- "cypress": "^13.17.0"
19
+ "cypress": "^14.5.2"
20
20
  }
21
21
  }
package/po.js ADDED
@@ -0,0 +1 @@
1
+ export { locator } from './lib/pageObjects';