@zohodesk/testinglibrary 0.0.5-exp.5 → 0.0.5-exp.6
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.
|
@@ -26,6 +26,8 @@ const fileName = 'uat.config.js';
|
|
|
26
26
|
* @property {string} openReportOn: default Option value (never, on-failure and always)
|
|
27
27
|
* @property {any} reportPath : directory where report is generate
|
|
28
28
|
* @property {boolean} isCucumberPreprocessingRequired: Feature files needs to be processed
|
|
29
|
+
* @property {number} expectTimeout: time in milliseconds which the expect condition should fail
|
|
30
|
+
* @property {number} testTimeout: time in milliseconds which the test should fail
|
|
29
31
|
*/
|
|
30
32
|
|
|
31
33
|
/**
|
|
@@ -22,7 +22,9 @@ const {
|
|
|
22
22
|
isAuthMode,
|
|
23
23
|
openReportOn,
|
|
24
24
|
reportPath = _path.default.join(process.cwd(), 'playwright-report'),
|
|
25
|
-
isCucumberPreprocessingRequired = false
|
|
25
|
+
isCucumberPreprocessingRequired = false,
|
|
26
|
+
expectTimeout = 5 * 1000,
|
|
27
|
+
testTimeout = 60 * 1000
|
|
26
28
|
} = (0, _readConfigFile.generateConfigFromFile)();
|
|
27
29
|
let projects = browsers.map(browser => {
|
|
28
30
|
if (browser === 'Chrome') {
|
|
@@ -81,9 +83,9 @@ var _default = (0, _test.defineConfig)({
|
|
|
81
83
|
outputFolder: reportPath,
|
|
82
84
|
open: openReportOn
|
|
83
85
|
}]],
|
|
84
|
-
timeout:
|
|
86
|
+
timeout: testTimeout,
|
|
85
87
|
expect: {
|
|
86
|
-
timeout:
|
|
88
|
+
timeout: expectTimeout
|
|
87
89
|
},
|
|
88
90
|
use: {
|
|
89
91
|
trace: trace ? 'on' : 'off',
|
|
@@ -13,7 +13,10 @@
|
|
|
13
13
|
* @property {string} openReportOn: default Option value (never, on-failure and always)
|
|
14
14
|
* @property {any} reportPath : directory where report is generate
|
|
15
15
|
* @property {boolean} isCucumberPreprocessingRequired: Feature files needs to be processed
|
|
16
|
-
|
|
16
|
+
* @property {number} expectTimeout: time in milliseconds which the expect condition should fail
|
|
17
|
+
* @property {number} testTimeout: time in milliseconds which the test should fail
|
|
18
|
+
*/
|
|
19
|
+
|
|
17
20
|
/**
|
|
18
21
|
* @type {UserConfig}
|
|
19
22
|
*/
|