File tree Expand file tree Collapse file tree 8 files changed +1611
-1995
lines changed
versioned_docs/version-2x Expand file tree Collapse file tree 8 files changed +1611
-1995
lines changed Original file line number Diff line number Diff line change 14
14
"write-heading-ids" : " docusaurus write-heading-ids"
15
15
},
16
16
"dependencies" : {
17
- "@docusaurus/core" : " ^3.7.0 " ,
18
- "@docusaurus/preset-classic" : " ^3.7.0 " ,
19
- "@easyops-cn/docusaurus-search-local" : " ^0.49.2 " ,
17
+ "@docusaurus/core" : " ^3.8.1 " ,
18
+ "@docusaurus/preset-classic" : " ^3.8.1 " ,
19
+ "@easyops-cn/docusaurus-search-local" : " ^0.52.1 " ,
20
20
"@mdx-js/react" : " ^3.1.0" ,
21
21
"clsx" : " ^2.1.1" ,
22
22
"prism-react-renderer" : " ^2.4.1" ,
23
- "react" : " ^19.1.0 " ,
24
- "react-dom" : " ^19.1.0 "
23
+ "react" : " ^19.1.1 " ,
24
+ "react-dom" : " ^19.1.1 "
25
25
},
26
26
"devDependencies" : {
27
- "@docusaurus/module-type-aliases" : " ^3.7.0 "
27
+ "@docusaurus/module-type-aliases" : " ^3.8.1 "
28
28
},
29
29
"browserslist" : {
30
30
"production" : [
Original file line number Diff line number Diff line change @@ -3,14 +3,16 @@ sidebar_position: 5
3
3
---
4
4
5
5
# @qavajs/xray-formatter
6
- Xray formatter for cucumber framework
6
+ [ Xray] ( https://docs.getxray.app/ ) formatter for cucumber framework
7
7
8
8
### Installation
9
9
To install formatter run
10
10
11
- ` npm install @qavajs/xray-formatter `
11
+ ``` bash
12
+ npm install @qavajs/xray-formatter
13
+ ```
12
14
13
- add to formatter section in config file
15
+ configure ` formatterOption ` property in config file:
14
16
15
17
cloud configuration:
16
18
``` javascript
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ sidebar_position: 6
4
4
5
5
# CI/CD
6
6
** qavajs** , is CI/CD agnostic and can be executed in any environment that satisfies following requirements:
7
- - [ nodejs] ( https://nodejs.org/en ) with npm > 18
7
+ - [ nodejs] ( https://nodejs.org/en ) > 20
8
8
- installed browsers (for UI testing)
9
9
10
10
## General Approach for qavajs in CI/CD:
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ sidebar_position: 3
4
4
5
5
# Parallel Execution
6
6
Framework support parallel execution out of the box.
7
- Number of parallel threads can be set in config file (by default it is config.js )
7
+ Number of parallel threads can be set in config file (by default it is config file )
8
8
``` typescript
9
9
export default {
10
10
// other configs
Original file line number Diff line number Diff line change @@ -94,6 +94,21 @@ match [ajv](https://www.npmjs.com/package/ajv) schema
94
94
Then I expect '$object' to match schema '$schema'
95
95
```
96
96
97
+ ## satisfy
98
+ verify user-defined expectation provided as predicate
99
+
100
+ ``` Gherkin
101
+ Then I expect '$value' to satisfy '$either(1, 2)'
102
+ ```
103
+ where ` $either ` is a predicate applied on first argument
104
+ ``` typescript
105
+ function either(... expected ) {
106
+ return function (actual ) {
107
+ return expected .includes (actual )
108
+ }
109
+ }
110
+ ```
111
+
97
112
## Using in custom steps
98
113
You can also use validations in custom steps
99
114
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export default {
37
37
browserName: ' chromium'
38
38
}
39
39
},
40
- pageObject: App
40
+ pageObject: new App ()
41
41
}
42
42
```
43
43
@@ -69,6 +69,7 @@ export default {
69
69
70
70
## Screenshot
71
71
@qavajs/steps-playwright can also take screenshot on particular event.
72
+
72
73
- onFail
73
74
- beforeStep
74
75
- afterStep
@@ -86,6 +87,7 @@ export default {
86
87
87
88
## Traces
88
89
@qavajs support capturing playwright traces. https://playwright.dev/docs/next/trace-viewer-intro
90
+
89
91
Supported events:
90
92
- onFail
91
93
- afterScenario
@@ -106,7 +108,8 @@ export default {
106
108
```
107
109
108
110
## Video
109
- @qavajs supports video recording. https://playwright.dev/docs/next/videos
111
+ @qavajs supports video recording https://playwright.dev/docs/next/videos
112
+
110
113
Supported events:
111
114
- onFail
112
115
- afterScenario
@@ -126,7 +129,7 @@ export default {
126
129
```
127
130
128
131
## Reuse Session
129
- _ reuseSession _ flag allows to share driver session between tests. Browser will not be closed automatically after test.
132
+ ` reuseSession ` flag allows to share driver session between tests. Browser will not be closed automatically after test.
130
133
131
134
``` typescript
132
135
export default {
@@ -137,7 +140,7 @@ export default {
137
140
```
138
141
139
142
## Restart Browser
140
- _ restartBrowser _ flag allows to restart browser between tests instead of default restarting context
143
+ ` restartBrowser ` flag allows to restart browser between tests instead of default restarting context
141
144
142
145
``` javascript
143
146
export default {
@@ -168,7 +171,7 @@ mouse button to interact
168
171
- right
169
172
- middle
170
173
171
- ## Context variables
174
+ ## Context properties
172
175
@qavajs/steps-playwright exposes following world variables
173
176
174
177
| variable | type | description |
Original file line number Diff line number Diff line change @@ -38,12 +38,13 @@ export default {
38
38
browserName: ' chrome'
39
39
}
40
40
},
41
- pageObject: App
41
+ pageObject: new App ()
42
42
}
43
43
```
44
44
45
45
## Screenshot
46
46
@qavajs/steps-wdio has build-in capability to take screenshot on particular event.
47
+
47
48
- onFail
48
49
- beforeStep
49
50
- afterStep
@@ -59,6 +60,7 @@ export default {
59
60
60
61
## Snapshot
61
62
@qavajs/steps-wdio has build-in capability to take snapshot on particular event.
63
+
62
64
- onFail
63
65
- beforeStep
64
66
- afterStep
@@ -72,7 +74,7 @@ export default {
72
74
```
73
75
74
76
## Reuse Session
75
- _ reuseSession _ flag allows to share driver session between tests. Browser will not be closed automatically after test.
77
+ ` reuseSession ` flag allows to share driver session between tests. Browser will not be closed automatically after test.
76
78
77
79
``` typescript
78
80
export default {
@@ -105,7 +107,7 @@ mouse button to interact
105
107
- right
106
108
- middle
107
109
108
- ## Context variables
110
+ ## Context properties
109
111
@qavajs/steps-wdio exposes following world variables
110
112
111
113
| variable | type | description |
You can’t perform that action at this time.
0 commit comments