@qavajs/cypress 2.7.0 → 2.8.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 +3 -0
- package/lib/pageObjects.js +12 -3
- package/lib/setup.js +2 -2
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,9 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
|
|
|
10
10
|
:pencil: - chore
|
|
11
11
|
:microscope: - experimental
|
|
12
12
|
|
|
13
|
+
## [2.8.0]
|
|
14
|
+
- :rocket: improved memory and page object logging
|
|
15
|
+
|
|
13
16
|
## [2.7.0]
|
|
14
17
|
- :rocket: added logic to display resolved selector chain
|
|
15
18
|
|
package/lib/pageObjects.js
CHANGED
|
@@ -86,7 +86,7 @@ export function element(path) {
|
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
const applyNative = (item) => {
|
|
89
|
-
logChain +=
|
|
89
|
+
logChain += `.native(${item.selector.toString()})`;
|
|
90
90
|
current = item.selector({
|
|
91
91
|
parent: current,
|
|
92
92
|
cy: this.cy,
|
|
@@ -115,8 +115,17 @@ export function element(path) {
|
|
|
115
115
|
method = item.selector ? 'find' : 'get';
|
|
116
116
|
}
|
|
117
117
|
Cypress.log({
|
|
118
|
-
|
|
119
|
-
message: logChain
|
|
118
|
+
displayName: `${path} →`,
|
|
119
|
+
message: logChain,
|
|
120
|
+
type: 'parent',
|
|
121
|
+
consoleProps: () => {
|
|
122
|
+
return {
|
|
123
|
+
Key: path,
|
|
124
|
+
Element: logChain,
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
alias: path,
|
|
128
|
+
aliasType: 'dom'
|
|
120
129
|
});
|
|
121
130
|
return current;
|
|
122
131
|
});
|
package/lib/setup.js
CHANGED
|
@@ -10,14 +10,14 @@ const logger = {
|
|
|
10
10
|
Cypress.log({
|
|
11
11
|
displayName: `${displayName} ${displayedDivider}`,
|
|
12
12
|
message,
|
|
13
|
-
|
|
13
|
+
alias: displayName,
|
|
14
14
|
consoleProps: () => {
|
|
15
15
|
return {
|
|
16
16
|
Key: displayName,
|
|
17
17
|
Value: message,
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
})
|
|
20
|
+
});
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
};
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qavajs/cypress",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0",
|
|
4
4
|
"description": "qavajs for cypress runner",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"debug": "cypress open --config-file test-e2e/cypress.config.js",
|
|
8
|
+
"debug:it": "MODE=it cypress open --config-file test-e2e/cypress.config.js",
|
|
8
9
|
"test": "cypress run --config-file test-e2e/cypress.config.js",
|
|
9
10
|
"test:it": "MODE=it cypress run --config-file test-e2e/cypress.config.js"
|
|
10
11
|
},
|
|
@@ -28,8 +29,8 @@
|
|
|
28
29
|
"author": "Alexandr Galichenko",
|
|
29
30
|
"license": "MIT",
|
|
30
31
|
"devDependencies": {
|
|
31
|
-
"@qavajs/cypress-runner-adapter": "^1.
|
|
32
|
+
"@qavajs/cypress-runner-adapter": "^1.8.0",
|
|
32
33
|
"@qavajs/memory": "^1.10.3",
|
|
33
|
-
"cypress": "^15.
|
|
34
|
+
"cypress": "^15.11.0"
|
|
34
35
|
}
|
|
35
36
|
}
|