testcafe 1.17.0-rc.1 → 1.17.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,53 @@
1
1
  # Changelog
2
2
 
3
+ ## v1.17.0 (2021-11-02)
4
+
5
+ ### Enhancements
6
+
7
+ #### Test Run Hooks
8
+
9
+ TestCafe now allows you to specify test run hooks. TestCafe executes these hooks before and after the test run ([#6487](https://github.com/DevExpress/testcafe/pull/6487)).
10
+
11
+ ```js
12
+ module.exports = {
13
+ hooks: {
14
+ testRun: {
15
+ before: async () => {
16
+ // your code
17
+ },
18
+ after: async () => {
19
+ // your code
20
+ },
21
+ },
22
+ },
23
+ };
24
+ ```
25
+
26
+ #### Execution Timeouts
27
+
28
+ You can now specify test and run execution timeouts in the [configuration file](https://testcafe.io/documentation/402638/reference/configuration-file) or [command line interface](https://testcafe.io/documentation/402639/reference/command-line-interface). TestCafe terminates a test or a test run when a timeout expires.
29
+
30
+ **Command line interface**
31
+
32
+ ```sh
33
+ testcafe chrome my-tests --test-execution-timeout 180000
34
+ testcafe chrome my-tests --run-execution-timeout 180000
35
+ ```
36
+ **Configuration file**
37
+
38
+ ```json
39
+ {
40
+ "runExecutionTimeout": 180000,
41
+ "testExecutionTimeout": 180000
42
+ }
43
+ ```
44
+
45
+ ### Bug Fixes
46
+
47
+ - TestCafe does not switch back to a tested web page if a button click opens a new window to download a file ([#6242](https://github.com/DevExpress/testcafe/issues/6242)).
48
+ - Fixed the "This socket has been ended by the other party" error ([#6558](https://github.com/DevExpress/testcafe/issues/6558)).
49
+ - TestCafe incorrectly handles rewritten uninitialized iframes ([testcafe-hammerhead/#2694](https://github.com/DevExpress/testcafe-hammerhead/issues/2694), [testcafe-hammerhead/#2693](https://github.com/DevExpress/testcafe-hammerhead/issues/2693)).
50
+
3
51
  ## v1.16.1 (2021-10-05)
4
52
 
5
53
  ### Bug Fixes
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "testcafe",
3
3
  "description": "Automated browser testing for the modern web development stack.",
4
4
  "license": "MIT",
5
- "version": "1.17.0-rc.1",
5
+ "version": "1.17.0",
6
6
  "author": {
7
7
  "name": "Developer Express Inc.",
8
8
  "url": "https://www.devexpress.com/"