@camperaid/watest 2.4.6 → 2.4.8
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/.prettierrc.js +1 -3
- package/.watestrc.js +1 -3
- package/bin/watest.js +3 -8
- package/core/base.js +79 -56
- package/core/core.js +25 -45
- package/core/format.js +96 -56
- package/core/process_args.js +1 -5
- package/core/series.js +60 -56
- package/core/settings.js +27 -32
- package/core/spawn.js +14 -21
- package/core/util.js +12 -19
- package/eslint.config.js +27 -0
- package/index.js +15 -17
- package/interfaces/logger.js +1 -3
- package/interfaces/servicer.js +1 -3
- package/logging/filestream.js +3 -7
- package/logging/logging.js +5 -11
- package/logging/logpipe.js +21 -21
- package/package.json +12 -11
- package/tests/base/t_api.js +3 -6
- package/tests/base/t_contains.js +12 -12
- package/tests/base/t_core.js +11 -8
- package/tests/base/t_format.js +13 -14
- package/tests/base/t_is.js +9 -11
- package/tests/base/t_is_object.js +23 -25
- package/tests/base/t_is_primitive.js +12 -14
- package/tests/base/t_is_string.js +6 -8
- package/tests/base/t_ok.js +4 -6
- package/tests/base/t_stringify.js +6 -8
- package/tests/base/t_test_.js +3 -5
- package/tests/base/t_throws.js +73 -0
- package/tests/base/test.js +8 -18
- package/tests/e2e/samples/{loader/.watestrc.cjs → folder/.watestrc.js} +1 -1
- package/tests/e2e/samples/folder/package-lock.json +1019 -5940
- package/tests/e2e/samples/folder/package.json +3 -2
- package/tests/e2e/samples/folder/tests/meta.js +1 -1
- package/tests/e2e/samples/folder/tests/unit/t_test.js +3 -3
- package/tests/e2e/samples/{loader_mixed/.watestrc.cjs → loader/.watestrc.js} +1 -1
- package/tests/e2e/samples/loader/package-lock.json +1751 -28
- package/tests/e2e/samples/loader/package.json +2 -2
- package/tests/e2e/samples/{folder/.watestrc.cjs → loader_mixed/.watestrc.js} +1 -1
- package/tests/e2e/samples/loader_mixed/package-lock.json +1751 -28
- package/tests/e2e/samples/loader_multiple/{.watestrc.cjs → .watestrc.js} +1 -1
- package/tests/e2e/samples/loader_multiple/package-lock.json +1751 -28
- package/tests/e2e/samples/loader_multiple/package.json +2 -2
- package/tests/e2e/samples/single/.watestrc.js +5 -0
- package/tests/e2e/samples/single/package-lock.json +1017 -5938
- package/tests/e2e/samples/single/package.json +5 -2
- package/tests/e2e/samples/wd_mixed/{.watestrc.cjs → .watestrc.js} +1 -1
- package/tests/e2e/samples/wd_mixed/package-lock.json +779 -4862
- package/tests/e2e/samples/wd_mixed/package.json +2 -2
- package/tests/e2e/samples/wd_single/{.watestrc.cjs → .watestrc.js} +1 -1
- package/tests/e2e/samples/wd_single/package-lock.json +779 -4862
- package/tests/e2e/samples/wd_single/package.json +2 -2
- package/tests/e2e/t_folder.js +4 -6
- package/tests/e2e/t_loader.js +4 -6
- package/tests/e2e/t_loader_mixed.js +4 -6
- package/tests/e2e/t_loader_multiple.js +4 -6
- package/tests/e2e/t_loader_multiple_patterns.js +4 -6
- package/tests/e2e/t_single.js +4 -6
- package/tests/e2e/t_wd_firefox.js +4 -6
- package/tests/e2e/t_wd_firefox_chrome.js +4 -6
- package/tests/e2e/t_wd_firefox_chrome_pattern.js +4 -6
- package/tests/e2e/t_wd_mixed_firefox.js +4 -6
- package/tests/e2e/t_wd_mixed_firefox_chrome.js +4 -6
- package/tests/e2e/test.js +15 -16
- package/tests/meta.js +1 -3
- package/tests/series/build/t_adjust_names.js +4 -6
- package/tests/series/build/t_adjust_names_webdriver.js +6 -10
- package/tests/series/build/t_expected_failures.js +4 -6
- package/tests/series/build/t_loader.js +4 -6
- package/tests/series/build/t_loader_mixed.js +4 -6
- package/tests/series/build/t_mixed.js +4 -6
- package/tests/series/build/t_nested.js +4 -6
- package/tests/series/build/t_patterns_loader.js +4 -6
- package/tests/series/build/t_patterns_webdriver.js +4 -6
- package/tests/series/build/t_webdriver.js +4 -6
- package/tests/series/build/t_webdriver_firefox_mixed.js +4 -6
- package/tests/series/build/t_webdriver_nested.js +4 -6
- package/tests/series/build/t_webdriver_services.js +4 -6
- package/tests/series/generic/t_failures_info.js +9 -12
- package/tests/series/logging/t_failures.js +18 -20
- package/tests/series/logging/t_success.js +15 -17
- package/tests/series/logging/t_verify.js +17 -14
- package/tests/series/meta.js +1 -3
- package/tests/series/mock_series.js +7 -13
- package/tests/series/perform/t_failure.js +4 -6
- package/tests/series/perform/t_failure_notest.js +4 -6
- package/tests/series/perform/t_intermittent.js +5 -7
- package/tests/series/perform/t_intermittent_global.js +4 -6
- package/tests/series/perform/t_missing_perma.js +5 -7
- package/tests/series/perform/t_nested.js +4 -10
- package/tests/series/perform/t_perma.js +4 -6
- package/tests/series/perform/t_success.js +5 -11
- package/tests/series/run/t_debunk_failure.js +7 -6
- package/tests/series/run/t_debunk_success.js +7 -6
- package/tests/series/run/t_nested.js +7 -6
- package/tests/series/run/t_verify.js +7 -6
- package/tests/series/run/t_verify_webdriver.js +7 -6
- package/tests/series/test.js +29 -40
- package/tests/webdriver/meta.js +1 -3
- package/tests/webdriver/t_app_driver.js +3 -5
- package/tests/webdriver/t_app_driver_selectors.js +3 -5
- package/tests/webdriver/t_attribute.js +5 -7
- package/tests/webdriver/t_attribute_all.js +6 -8
- package/tests/webdriver/t_doubleclick.js +3 -5
- package/tests/webdriver/t_doubleclickat.js +3 -5
- package/tests/webdriver/t_execute.js +4 -6
- package/tests/webdriver/t_if_has_elements.js +6 -8
- package/tests/webdriver/t_if_no_elements.js +6 -8
- package/tests/webdriver/t_no_elements_or_not_visible.js +7 -9
- package/tests/webdriver/t_properties.js +11 -13
- package/tests/webdriver/t_script.js +8 -10
- package/tests/webdriver/t_select_all.js +6 -11
- package/tests/webdriver/t_selection.js +4 -6
- package/tests/webdriver/t_text.js +12 -14
- package/tests/webdriver/t_text_all.js +6 -8
- package/tests/webdriver/test.js +32 -41
- package/webdriver/app_driver.js +15 -19
- package/webdriver/control_driver.js +4 -8
- package/webdriver/driver.js +58 -61
- package/webdriver/driver_base.js +50 -60
- package/webdriver/session.js +6 -11
- package/webdriver/util.js +7 -8
- package/.eslintrc.js +0 -45
- package/index.mjs +0 -5
- package/tests/e2e/samples/folder/node_modules/.package-lock.json +0 -3871
- package/tests/e2e/samples/loader/node_modules/.package-lock.json +0 -36
- package/tests/e2e/samples/loader_mixed/node_modules/.package-lock.json +0 -36
- package/tests/e2e/samples/loader_multiple/node_modules/.package-lock.json +0 -36
- package/tests/e2e/samples/single/.watestrc.cjs +0 -5
- package/tests/e2e/samples/single/node_modules/.package-lock.json +0 -3871
- package/tests/e2e/samples/wd_mixed/node_modules/.package-lock.json +0 -3586
- package/tests/e2e/samples/wd_single/node_modules/.package-lock.json +0 -3586
package/tests/e2e/t_folder.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { is, run_e2e_tests } from './test.js';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
module.exports.test = async () => {
|
|
3
|
+
export async function test() {
|
|
6
4
|
let output = await run_e2e_tests('folder');
|
|
7
5
|
is(
|
|
8
6
|
output.stdout,
|
|
@@ -18,8 +16,8 @@ module.exports.test = async () => {
|
|
|
18
16
|
'Testsuite: shutdown',
|
|
19
17
|
'Elapsed:',
|
|
20
18
|
],
|
|
21
|
-
'stdout'
|
|
19
|
+
'stdout',
|
|
22
20
|
);
|
|
23
21
|
|
|
24
22
|
is(output.stderr, [], 'stderr');
|
|
25
|
-
}
|
|
23
|
+
}
|
package/tests/e2e/t_loader.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { is, run_e2e_tests } from './test.js';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
module.exports.test = async () => {
|
|
3
|
+
export async function test() {
|
|
6
4
|
let output = await run_e2e_tests('loader');
|
|
7
5
|
is(
|
|
8
6
|
output.stdout,
|
|
@@ -20,8 +18,8 @@ module.exports.test = async () => {
|
|
|
20
18
|
'Testsuite: shutdown',
|
|
21
19
|
'Elapsed:',
|
|
22
20
|
],
|
|
23
|
-
'stdout'
|
|
21
|
+
'stdout',
|
|
24
22
|
);
|
|
25
23
|
|
|
26
24
|
is(output.stderr, [], 'stderr');
|
|
27
|
-
}
|
|
25
|
+
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { is, run_e2e_tests } from './test.js';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
module.exports.test = async () => {
|
|
3
|
+
export async function test() {
|
|
6
4
|
let output = await run_e2e_tests('loader_mixed');
|
|
7
5
|
is(
|
|
8
6
|
output.stdout,
|
|
@@ -25,8 +23,8 @@ module.exports.test = async () => {
|
|
|
25
23
|
'Testsuite: shutdown',
|
|
26
24
|
'Elapsed:',
|
|
27
25
|
],
|
|
28
|
-
'stdout'
|
|
26
|
+
'stdout',
|
|
29
27
|
);
|
|
30
28
|
|
|
31
29
|
is(output.stderr, [], 'stderr');
|
|
32
|
-
}
|
|
30
|
+
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { is, run_e2e_tests } from './test.js';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
module.exports.test = async () => {
|
|
3
|
+
export async function test() {
|
|
6
4
|
let output = await run_e2e_tests('loader_multiple');
|
|
7
5
|
is(
|
|
8
6
|
output.stdout,
|
|
@@ -27,8 +25,8 @@ module.exports.test = async () => {
|
|
|
27
25
|
'Testsuite: shutdown',
|
|
28
26
|
'Elapsed:',
|
|
29
27
|
],
|
|
30
|
-
'stdout'
|
|
28
|
+
'stdout',
|
|
31
29
|
);
|
|
32
30
|
|
|
33
31
|
is(output.stderr, [], 'stderr');
|
|
34
|
-
}
|
|
32
|
+
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { is, run_e2e_tests } from './test.js';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
module.exports.test = async () => {
|
|
3
|
+
export async function test() {
|
|
6
4
|
let output = await run_e2e_tests('loader_multiple', {
|
|
7
5
|
patterns: ['tests/base/t_btest.js', 'tests/core/t_ctest.js'],
|
|
8
6
|
});
|
|
@@ -29,8 +27,8 @@ module.exports.test = async () => {
|
|
|
29
27
|
'Testsuite: shutdown',
|
|
30
28
|
'Elapsed:',
|
|
31
29
|
],
|
|
32
|
-
'stdout'
|
|
30
|
+
'stdout',
|
|
33
31
|
);
|
|
34
32
|
|
|
35
33
|
is(output.stderr, [], 'stderr');
|
|
36
|
-
}
|
|
34
|
+
}
|
package/tests/e2e/t_single.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { is, run_e2e_tests } from './test.js';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
module.exports.test = async () => {
|
|
3
|
+
export async function test() {
|
|
6
4
|
let output = await run_e2e_tests('single');
|
|
7
5
|
is(
|
|
8
6
|
output.stdout,
|
|
@@ -16,8 +14,8 @@ module.exports.test = async () => {
|
|
|
16
14
|
'Testsuite: shutdown',
|
|
17
15
|
'Elapsed:',
|
|
18
16
|
],
|
|
19
|
-
'stdout'
|
|
17
|
+
'stdout',
|
|
20
18
|
);
|
|
21
19
|
|
|
22
20
|
is(output.stderr, [], 'stderr');
|
|
23
|
-
}
|
|
21
|
+
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { is, run_e2e_tests } from './test.js';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
module.exports.test = async () => {
|
|
3
|
+
export async function test() {
|
|
6
4
|
let output = await run_e2e_tests('wd_single', {
|
|
7
5
|
webdrivers: ['firefox'],
|
|
8
6
|
});
|
|
@@ -22,8 +20,8 @@ module.exports.test = async () => {
|
|
|
22
20
|
'Testsuite: shutdown',
|
|
23
21
|
'Elapsed:',
|
|
24
22
|
],
|
|
25
|
-
'stdout'
|
|
23
|
+
'stdout',
|
|
26
24
|
);
|
|
27
25
|
|
|
28
26
|
is(output.stderr, [], 'stderr');
|
|
29
|
-
}
|
|
27
|
+
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { is, run_e2e_tests } from './test.js';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
module.exports.test = async () => {
|
|
3
|
+
export async function test() {
|
|
6
4
|
let output = await run_e2e_tests('wd_single', {
|
|
7
5
|
webdrivers: ['firefox', 'chrome'],
|
|
8
6
|
});
|
|
@@ -27,8 +25,8 @@ module.exports.test = async () => {
|
|
|
27
25
|
'Testsuite: shutdown',
|
|
28
26
|
'Elapsed:',
|
|
29
27
|
],
|
|
30
|
-
'stdout'
|
|
28
|
+
'stdout',
|
|
31
29
|
);
|
|
32
30
|
|
|
33
31
|
is(output.stderr, [], 'stderr');
|
|
34
|
-
}
|
|
32
|
+
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { is, run_e2e_tests } from './test.js';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
module.exports.test = async () => {
|
|
3
|
+
export async function test() {
|
|
6
4
|
let output = await run_e2e_tests('wd_single', {
|
|
7
5
|
webdrivers: ['firefox', 'chrome'],
|
|
8
6
|
patterns: ['tests/t_test.js'],
|
|
@@ -28,8 +26,8 @@ module.exports.test = async () => {
|
|
|
28
26
|
'Testsuite: shutdown',
|
|
29
27
|
'Elapsed:',
|
|
30
28
|
],
|
|
31
|
-
'stdout'
|
|
29
|
+
'stdout',
|
|
32
30
|
);
|
|
33
31
|
|
|
34
32
|
is(output.stderr, [], 'stderr');
|
|
35
|
-
}
|
|
33
|
+
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { is, run_e2e_tests } from './test.js';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
module.exports.test = async () => {
|
|
3
|
+
export async function test() {
|
|
6
4
|
let output = await run_e2e_tests('wd_mixed', {
|
|
7
5
|
webdrivers: ['firefox'],
|
|
8
6
|
});
|
|
@@ -29,8 +27,8 @@ module.exports.test = async () => {
|
|
|
29
27
|
'Testsuite: shutdown',
|
|
30
28
|
'Elapsed:',
|
|
31
29
|
],
|
|
32
|
-
'stdout'
|
|
30
|
+
'stdout',
|
|
33
31
|
);
|
|
34
32
|
|
|
35
33
|
is(output.stderr, [], 'stderr');
|
|
36
|
-
}
|
|
34
|
+
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { is, run_e2e_tests } from './test.js';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
module.exports.test = async () => {
|
|
3
|
+
export async function test() {
|
|
6
4
|
let output = await run_e2e_tests('wd_mixed', {
|
|
7
5
|
webdrivers: ['firefox', 'chrome'],
|
|
8
6
|
});
|
|
@@ -34,8 +32,8 @@ module.exports.test = async () => {
|
|
|
34
32
|
'Testsuite: shutdown',
|
|
35
33
|
'Elapsed:',
|
|
36
34
|
],
|
|
37
|
-
'stdout'
|
|
35
|
+
'stdout',
|
|
38
36
|
);
|
|
39
37
|
|
|
40
38
|
is(output.stderr, [], 'stderr');
|
|
41
|
-
}
|
|
39
|
+
}
|
package/tests/e2e/test.js
CHANGED
|
@@ -1,20 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
import path from 'path';
|
|
2
|
+
import { fileURLToPath } from 'url';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
import { format_test_output } from '../../core/base.js';
|
|
5
|
+
import { fail } from '../../core/core.js';
|
|
6
|
+
import { spawn } from '../../core/spawn.js';
|
|
4
7
|
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const { spawn } = require('../../core/spawn.js');
|
|
8
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
9
|
+
const __dirname = path.dirname(__filename);
|
|
8
10
|
|
|
9
|
-
|
|
10
|
-
for (let script of scripts) {
|
|
11
|
-
let script_exports = require(script);
|
|
12
|
-
for (let e in script_exports) {
|
|
13
|
-
module.exports[e] = script_exports[e];
|
|
14
|
-
}
|
|
15
|
-
}
|
|
11
|
+
export * from '../../index.js';
|
|
16
12
|
|
|
17
|
-
|
|
13
|
+
export async function run_e2e_tests(sample, options = {}) {
|
|
18
14
|
let stdout = [];
|
|
19
15
|
let stderr = [];
|
|
20
16
|
|
|
@@ -40,8 +36,11 @@ module.exports.run_e2e_tests = async (sample, options = {}) => {
|
|
|
40
36
|
!line.startsWith('> @camperaid/watest') &&
|
|
41
37
|
!line.startsWith('> watest') &&
|
|
42
38
|
!line.startsWith('Settings:') &&
|
|
43
|
-
!line.includes('ExperimentalWarning:
|
|
44
|
-
!line.
|
|
39
|
+
!line.includes('ExperimentalWarning: `--experimental-loader`') &&
|
|
40
|
+
!line.includes(
|
|
41
|
+
`--import 'data:text/javascript,import { register }`,
|
|
42
|
+
) &&
|
|
43
|
+
!line.startsWith('(Use `node --trace-warnings'),
|
|
45
44
|
);
|
|
46
45
|
is_stdout ? stdout.push(...lines) : stderr.push(...lines);
|
|
47
46
|
}
|
|
@@ -52,4 +51,4 @@ module.exports.run_e2e_tests = async (sample, options = {}) => {
|
|
|
52
51
|
}
|
|
53
52
|
|
|
54
53
|
return format_test_output({ stdout, stderr });
|
|
55
|
-
}
|
|
54
|
+
}
|
package/tests/meta.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { is, MockSeries } from '../test.js';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
module.exports.test = async () => {
|
|
3
|
+
export async function test() {
|
|
6
4
|
const test = got => got.name == 'test_wrap';
|
|
7
5
|
const ts = {
|
|
8
6
|
'unit': {
|
|
@@ -85,6 +83,6 @@ module.exports.test = async () => {
|
|
|
85
83
|
],
|
|
86
84
|
},
|
|
87
85
|
],
|
|
88
|
-
'build'
|
|
86
|
+
'build',
|
|
89
87
|
);
|
|
90
|
-
}
|
|
88
|
+
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { is, MockSeries } from '../test.js';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
module.exports.test = async () => {
|
|
3
|
+
export async function test() {
|
|
6
4
|
const test = got => got.name == 'test_wrap';
|
|
7
5
|
const ts = {
|
|
8
6
|
'tests': {
|
|
@@ -63,10 +61,8 @@ module.exports.test = async () => {
|
|
|
63
61
|
path: 'tests/webdriver/end-to-end/sharing/',
|
|
64
62
|
subtests: [
|
|
65
63
|
{
|
|
66
|
-
name:
|
|
67
|
-
|
|
68
|
-
path:
|
|
69
|
-
'tests/webdriver/end-to-end/sharing/t_shared_editing.js',
|
|
64
|
+
name: 'mac/webdriver/chrome/end-to-end/sharing2/t_shared_editing.js',
|
|
65
|
+
path: 'tests/webdriver/end-to-end/sharing/t_shared_editing.js',
|
|
70
66
|
func: test,
|
|
71
67
|
webdriver: 'chrome',
|
|
72
68
|
failures_info: [],
|
|
@@ -80,6 +76,6 @@ module.exports.test = async () => {
|
|
|
80
76
|
],
|
|
81
77
|
},
|
|
82
78
|
],
|
|
83
|
-
'build'
|
|
79
|
+
'build',
|
|
84
80
|
);
|
|
85
|
-
}
|
|
81
|
+
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { is, MockSeries } from '../test.js';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
module.exports.test = async () => {
|
|
3
|
+
export async function test() {
|
|
6
4
|
const test = got => got.name == 'test_wrap';
|
|
7
5
|
const failures_info = [
|
|
8
6
|
{
|
|
@@ -106,6 +104,6 @@ module.exports.test = async () => {
|
|
|
106
104
|
],
|
|
107
105
|
},
|
|
108
106
|
],
|
|
109
|
-
'build'
|
|
107
|
+
'build',
|
|
110
108
|
);
|
|
111
|
-
}
|
|
109
|
+
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { is, MockSeries } from '../test.js';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
module.exports.test = async () => {
|
|
3
|
+
export async function test() {
|
|
6
4
|
const ts = {
|
|
7
5
|
'tests': {
|
|
8
6
|
meta: {
|
|
@@ -48,6 +46,6 @@ module.exports.test = async () => {
|
|
|
48
46
|
webdriver: '',
|
|
49
47
|
},
|
|
50
48
|
],
|
|
51
|
-
'pattern'
|
|
49
|
+
'pattern',
|
|
52
50
|
);
|
|
53
|
-
}
|
|
51
|
+
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { is, MockSeries } from '../test.js';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
module.exports.test = async () => {
|
|
3
|
+
export async function test() {
|
|
6
4
|
const test = got => got.name == 'test_wrap';
|
|
7
5
|
const ts = {
|
|
8
6
|
'tests': {
|
|
@@ -59,6 +57,6 @@ module.exports.test = async () => {
|
|
|
59
57
|
run_in_child_process: true,
|
|
60
58
|
},
|
|
61
59
|
],
|
|
62
|
-
'pattern'
|
|
60
|
+
'pattern',
|
|
63
61
|
);
|
|
64
|
-
}
|
|
62
|
+
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { is, MockSeries } from '../test.js';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
module.exports.test = async () => {
|
|
3
|
+
export async function test() {
|
|
6
4
|
const init = got => got.name == 'init';
|
|
7
5
|
const func = got => got.name == 'test_wrap';
|
|
8
6
|
const uninit = got => got.name == 'uninit';
|
|
@@ -119,6 +117,6 @@ module.exports.test = async () => {
|
|
|
119
117
|
init_or_uninit: true,
|
|
120
118
|
},
|
|
121
119
|
],
|
|
122
|
-
'build'
|
|
120
|
+
'build',
|
|
123
121
|
);
|
|
124
|
-
}
|
|
122
|
+
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { is, MockSeries } from '../test.js';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
module.exports.test = async () => {
|
|
3
|
+
export async function test() {
|
|
6
4
|
const test = got => got.name == 'test_wrap';
|
|
7
5
|
const ts = {
|
|
8
6
|
'unit': {
|
|
@@ -84,6 +82,6 @@ module.exports.test = async () => {
|
|
|
84
82
|
],
|
|
85
83
|
},
|
|
86
84
|
],
|
|
87
|
-
'build'
|
|
85
|
+
'build',
|
|
88
86
|
);
|
|
89
|
-
}
|
|
87
|
+
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { is, MockSeries } from '../test.js';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
module.exports.test = async () => {
|
|
3
|
+
export async function test() {
|
|
6
4
|
const ts = {
|
|
7
5
|
'tests': {
|
|
8
6
|
meta: {
|
|
@@ -64,6 +62,6 @@ module.exports.test = async () => {
|
|
|
64
62
|
run_in_child_process: true,
|
|
65
63
|
},
|
|
66
64
|
],
|
|
67
|
-
'pattern'
|
|
65
|
+
'pattern',
|
|
68
66
|
);
|
|
69
|
-
}
|
|
67
|
+
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { is, MockSeries } from '../test.js';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
module.exports.test = async () => {
|
|
3
|
+
export async function test() {
|
|
6
4
|
const test = got => got.name == 'test_wrap';
|
|
7
5
|
const ts = {
|
|
8
6
|
'e2e': {
|
|
@@ -56,6 +54,6 @@ module.exports.test = async () => {
|
|
|
56
54
|
run_in_child_process: true,
|
|
57
55
|
},
|
|
58
56
|
],
|
|
59
|
-
'pattern'
|
|
57
|
+
'pattern',
|
|
60
58
|
);
|
|
61
|
-
}
|
|
59
|
+
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { is, MockSeries } from '../test.js';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
module.exports.test = async () => {
|
|
3
|
+
export async function test() {
|
|
6
4
|
const test = got => got.name == 'test_wrap';
|
|
7
5
|
const ts = {
|
|
8
6
|
'e2e': {
|
|
@@ -78,6 +76,6 @@ module.exports.test = async () => {
|
|
|
78
76
|
run_in_child_process: true,
|
|
79
77
|
},
|
|
80
78
|
],
|
|
81
|
-
'build'
|
|
79
|
+
'build',
|
|
82
80
|
);
|
|
83
|
-
}
|
|
81
|
+
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { is, MockSeries } from '../test.js';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
module.exports.test = async () => {
|
|
3
|
+
export async function test() {
|
|
6
4
|
const test = got => got.name == 'test_wrap';
|
|
7
5
|
const ts = {
|
|
8
6
|
'tests': {
|
|
@@ -65,6 +63,6 @@ module.exports.test = async () => {
|
|
|
65
63
|
],
|
|
66
64
|
},
|
|
67
65
|
],
|
|
68
|
-
'build'
|
|
66
|
+
'build',
|
|
69
67
|
);
|
|
70
|
-
}
|
|
68
|
+
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { is, MockSeries } from '../test.js';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
module.exports.test = async () => {
|
|
3
|
+
export async function test() {
|
|
6
4
|
const test = got => got.name == 'test_wrap';
|
|
7
5
|
const ts = {
|
|
8
6
|
'e2e': {
|
|
@@ -57,6 +55,6 @@ module.exports.test = async () => {
|
|
|
57
55
|
run_in_child_process: true,
|
|
58
56
|
},
|
|
59
57
|
],
|
|
60
|
-
'build'
|
|
58
|
+
'build',
|
|
61
59
|
);
|
|
62
|
-
}
|
|
60
|
+
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { is, MockSeries } from '../test.js';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
module.exports.test = async () => {
|
|
3
|
+
export async function test() {
|
|
6
4
|
const test = got => got.name == 'test_wrap';
|
|
7
5
|
const init = got => got.name == 'init';
|
|
8
6
|
const uninit = got => got.name == 'uninit';
|
|
@@ -77,6 +75,6 @@ module.exports.test = async () => {
|
|
|
77
75
|
run_in_child_process: true,
|
|
78
76
|
},
|
|
79
77
|
],
|
|
80
|
-
'build'
|
|
78
|
+
'build',
|
|
81
79
|
);
|
|
82
|
-
}
|
|
80
|
+
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { is, Series } from '../test.js';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
module.exports.test = () => {
|
|
3
|
+
export function test() {
|
|
6
4
|
// failuresInfo: all
|
|
7
5
|
let failures = [
|
|
8
6
|
[
|
|
@@ -32,7 +30,7 @@ module.exports.test = () => {
|
|
|
32
30
|
msg: 'Server terminates connection 421 error',
|
|
33
31
|
},
|
|
34
32
|
],
|
|
35
|
-
`all
|
|
33
|
+
`all`,
|
|
36
34
|
);
|
|
37
35
|
|
|
38
36
|
// failuresInfo: win-chrome
|
|
@@ -73,7 +71,7 @@ module.exports.test = () => {
|
|
|
73
71
|
msg: 'No LocInfo is shown, InfoWindow with no title is shown instead',
|
|
74
72
|
},
|
|
75
73
|
],
|
|
76
|
-
`win-chrome
|
|
74
|
+
`win-chrome`,
|
|
77
75
|
);
|
|
78
76
|
|
|
79
77
|
// all-firefox
|
|
@@ -122,11 +120,10 @@ module.exports.test = () => {
|
|
|
122
120
|
'LocInfo title. Failure details: ""',
|
|
123
121
|
'Waiting until element is visible',
|
|
124
122
|
],
|
|
125
|
-
msg:
|
|
126
|
-
'Double click triggers intermittently when Killarney marker is clicked, what makes create-trip-dialog showing',
|
|
123
|
+
msg: 'Double click triggers intermittently when Killarney marker is clicked, what makes create-trip-dialog showing',
|
|
127
124
|
},
|
|
128
125
|
],
|
|
129
|
-
'all-firefox'
|
|
126
|
+
'all-firefox',
|
|
130
127
|
);
|
|
131
128
|
|
|
132
129
|
// chrome-mobile
|
|
@@ -188,7 +185,7 @@ module.exports.test = () => {
|
|
|
188
185
|
msg: undefined,
|
|
189
186
|
},
|
|
190
187
|
],
|
|
191
|
-
'chrome-mobile'
|
|
188
|
+
'chrome-mobile',
|
|
192
189
|
);
|
|
193
190
|
|
|
194
191
|
// common failures aka '*' test filters
|
|
@@ -238,6 +235,6 @@ module.exports.test = () => {
|
|
|
238
235
|
msg: 'Intermittent socket hangup',
|
|
239
236
|
},
|
|
240
237
|
],
|
|
241
|
-
`common
|
|
238
|
+
`common`,
|
|
242
239
|
);
|
|
243
|
-
}
|
|
240
|
+
}
|