@qavajs/cypress 2.0.1 → 2.1.0
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 +6 -0
- package/README.md +13 -5
- package/lib/pageObjects.js +1 -1
- package/package.json +3 -3
- package/po.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,12 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
|
|
|
10
10
|
:pencil: - chore
|
|
11
11
|
:microscope: - experimental
|
|
12
12
|
|
|
13
|
+
## [2.1.0]
|
|
14
|
+
- :rocket: added page object logging
|
|
15
|
+
|
|
16
|
+
## [2.0.2]
|
|
17
|
+
- :beetle: added export of page object `locator` function
|
|
18
|
+
|
|
13
19
|
## [2.0.1]
|
|
14
20
|
- :beetle: fixed issue with getting child element
|
|
15
21
|
|
package/README.md
CHANGED
|
@@ -3,7 +3,9 @@ qavajs implementation for cypress runner
|
|
|
3
3
|
|
|
4
4
|
## Installation
|
|
5
5
|
|
|
6
|
-
|
|
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
|
-
|
|
44
|
+
```
|
|
45
|
+
npm install
|
|
46
|
+
```
|
|
43
47
|
|
|
44
48
|
|
|
45
49
|
Execute tests
|
|
46
|
-
|
|
50
|
+
```
|
|
51
|
+
npm run test
|
|
52
|
+
```
|
|
47
53
|
|
|
48
54
|
Debug tests
|
|
49
|
-
|
|
55
|
+
```
|
|
56
|
+
npm run debug
|
|
57
|
+
```
|
package/lib/pageObjects.js
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qavajs/cypress",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
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": "^
|
|
19
|
+
"cypress": "^14.5.2"
|
|
20
20
|
}
|
|
21
21
|
}
|
package/po.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { locator } from './lib/pageObjects';
|