|
|
@ -7,18 +7,16 @@ class ValidateValueInput extends EventEmitter { |
|
|
|
browser.perform((done) => { |
|
|
|
browser.perform((done) => { |
|
|
|
browser |
|
|
|
browser |
|
|
|
.clearValue(selector) |
|
|
|
.clearValue(selector) |
|
|
|
.execute((selector) => { |
|
|
|
.click(selector) |
|
|
|
(document.querySelector(selector) as any).focus() |
|
|
|
|
|
|
|
}, [selector], () => { }) |
|
|
|
|
|
|
|
.setValue(selector, valueTosSet) |
|
|
|
.setValue(selector, valueTosSet) |
|
|
|
|
|
|
|
.pause(500) |
|
|
|
.execute(function (selector) { |
|
|
|
.execute(function (selector) { |
|
|
|
const elem = document.querySelector(selector) as HTMLInputElement |
|
|
|
const elem = document.querySelector(selector) as HTMLInputElement |
|
|
|
return elem.value |
|
|
|
return elem.value |
|
|
|
}, [selector], function (result) { |
|
|
|
}, [selector], function (result) { |
|
|
|
browser.assert.equal(result.value, expectedValue) |
|
|
|
browser.assert.equal(result.value, expectedValue) |
|
|
|
}) |
|
|
|
}).perform(() => { done() ;this.emit('complete') }) |
|
|
|
done() |
|
|
|
|
|
|
|
this.emit('complete') |
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
return this |
|
|
|
return this |
|
|
|
} |
|
|
|
} |
|
|
|