Skip to content

Commit aecb929

Browse files
added interceptor steps (#40)
added support of multiple events for taking screenshots
1 parent 5ddc819 commit aecb929

File tree

16 files changed

+1561
-74
lines changed

16 files changed

+1561
-74
lines changed

CHANGELOG.md

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,53 @@
1-
## 0.0.17
1+
# Change Log
2+
3+
All notable changes to the "@qavajs/steps-playwright" will be documented in this file.
4+
5+
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
6+
7+
## [0.0.18]
8+
- :rocket: added interceptor steps
9+
- :rocket: added support of multiple events for taking screenshots
10+
11+
## [0.0.17]
212
- :rocket: added _I force click_ step
313
- :beetle: added support of memory values in _I click '$value' text in 'collection' collection_
414

5-
## 0.0.16
15+
## [0.0.16]
616
- :beetle: fixed optional params templates in wait steps
717

8-
## 0.0.15
18+
## [0.0.15]
919
- :rocket: added validation logs
1020

11-
## 0.0.14
21+
## [0.0.14]
1222
- :rocket: added custom timeout parameter
1323

14-
## 0.0.13
24+
## [0.0.13]
1525
- :rocket: added JS alert steps
1626
- :rocket: added _I press button given number of times_ step
1727

18-
## 0.0.12
28+
## [0.0.12]
1929
- :rocket: added _I upload file_ step
2030

21-
## 0.0.11
31+
## [0.0.11]
2232
- :rocket: removed po package dependency
2333
- :rocket: added util functions exports to build custom steps
2434

25-
## 0.0.9
35+
## [0.0.9]
2636
- :rocket: added scroll by offset steps
2737
- :rocket: updated po dependency to support ignoreHierarchy options
2838

29-
## 0.0.8
39+
## [0.0.8]
3040
- :beetle: fixed issue that opens page from browser, not from context
3141
- :rocket: added mock steps
3242
- :rocket: added playwright traces
3343

34-
## 0.0.7
44+
## [0.0.7]
3545
- :rocket: added capability to connect via CDP
3646
- :rocket: added I wait until current url step
3747
- :rocket: added I wait until page title step
3848
- :rocket: added I execute steps allow to execute client functions
3949

40-
## 0.0.6
50+
## [0.0.6]
4151
- :beetle: fixed issue in After hook if browser is not started
4252
- :rocket: added I save css property step
4353
- :rocket: added I expect css property step

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Supported events:
6363
```javascript
6464
module.exports = {
6565
default: {
66-
screenshot: 'onFail'
66+
screenshot: ['onFail']
6767
}
6868
}
6969
```
@@ -74,8 +74,8 @@ module.exports = {
7474
{
7575
browser: {
7676
trace: {
77-
event: 'onFail', // Event to save trace. Possible value onFail or AfterScenario
78-
dir: 'dirToStoreTraces' // Dir to store traces. Default is traces/
77+
event: ['onFail'], // Events to save trace. Possible value onFail or AfterScenario
78+
dir: 'dirToStoreTraces', // Dir to store traces. Default is traces/
7979
attach: true // Define if trace need to be attached to cucumber report. Default false
8080
}
8181
}

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ require('./lib/waits.js');
55
require('./lib/validations.js');
66
require('./lib/memory.js');
77
require('./lib/execute.js');
8+
require('./lib/intercept.js');
9+
require('./lib/cookies.js');
10+
require('./lib/localSessionStorage.js');

0 commit comments

Comments
 (0)