@camperaid/watest 2.3.6 → 2.3.7
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/package.json +1 -1
- package/tests/e2e/samples/folder/node_modules/.package-lock.json +1 -1
- package/tests/e2e/samples/folder/package-lock.json +1 -1
- package/tests/e2e/samples/loader/node_modules/.package-lock.json +1 -1
- package/tests/e2e/samples/loader/package-lock.json +1 -1
- package/tests/e2e/samples/loader_mixed/node_modules/.package-lock.json +1 -1
- package/tests/e2e/samples/loader_mixed/package-lock.json +1 -1
- package/tests/e2e/samples/loader_multiple/node_modules/.package-lock.json +1 -1
- package/tests/e2e/samples/loader_multiple/package-lock.json +1 -1
- package/tests/e2e/samples/single/node_modules/.package-lock.json +1 -1
- package/tests/e2e/samples/single/package-lock.json +1 -1
- package/tests/e2e/samples/wd_mixed/node_modules/.package-lock.json +1 -1
- package/tests/e2e/samples/wd_mixed/package-lock.json +1 -1
- package/tests/e2e/samples/wd_single/node_modules/.package-lock.json +1 -1
- package/tests/e2e/samples/wd_single/package-lock.json +1 -1
- package/tests/webdriver/t_app_driver.js +2 -2
- package/webdriver/app_driver.js +9 -1
package/package.json
CHANGED
|
@@ -25,7 +25,7 @@ module.exports.test = do_self_tests(snippet, async session => {
|
|
|
25
25
|
`Test: Input is shown. Selector: '#input'`,
|
|
26
26
|
`Ok: '#input' has to be unique, got: 1`,
|
|
27
27
|
`Ok: Input is shown`,
|
|
28
|
-
`Action: Input.type into Type hello`,
|
|
28
|
+
`Action: Input.type 'hello' into Type hello`,
|
|
29
29
|
`Test: Focus. Selector: '#input'`,
|
|
30
30
|
`Ok: '#input' has to be unique, got: 1`,
|
|
31
31
|
`Ok: Focus`,
|
|
@@ -47,7 +47,7 @@ module.exports.test = do_self_tests(snippet, async session => {
|
|
|
47
47
|
`Test: Input is shown. Selector: '#input'`,
|
|
48
48
|
`Ok: '#input' has to be unique, got: 1`,
|
|
49
49
|
`Ok: Input is shown`,
|
|
50
|
-
`Action: Input.type into Type hello`,
|
|
50
|
+
`Action: Input.type 'hello' into Type hello`,
|
|
51
51
|
`Test: Focus. Selector: '#input'`,
|
|
52
52
|
`Ok: '#input' has to be unique, got: 1`,
|
|
53
53
|
`Ok: Focus`,
|
package/webdriver/app_driver.js
CHANGED
|
@@ -73,7 +73,7 @@ class AppDriver {
|
|
|
73
73
|
|
|
74
74
|
type(selector, value, field) {
|
|
75
75
|
return this.chain(() =>
|
|
76
|
-
this.action(`${this.uiname}.type into ${field}`)
|
|
76
|
+
this.action(`${this.uiname}.type '${value}' into ${field}`)
|
|
77
77
|
.sendKeys(selector, '', `Focus`)
|
|
78
78
|
.elementFocused(selector, 'Focused')
|
|
79
79
|
.selectAll(selector, `Select all text`)
|
|
@@ -82,6 +82,14 @@ class AppDriver {
|
|
|
82
82
|
);
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
clear(selector, field) {
|
|
86
|
+
return this.chain(() =>
|
|
87
|
+
this.action(`${this.uiname}.clear ${field}`)
|
|
88
|
+
.clear(selector, `Clear text`)
|
|
89
|
+
.textIs(selector, '', `Check ${field} text`)
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
|
|
85
93
|
setValue(selector, value, field) {
|
|
86
94
|
return this.chain(() =>
|
|
87
95
|
this.action(`${this.uiname}.setValue for ${field}`)
|