aboutsummaryrefslogtreecommitdiffstats
path: root/test/integration/lib/mascara-first-time.js
diff options
context:
space:
mode:
authorAlexander Tseung <alextsg@gmail.com>2018-05-11 07:51:26 +0800
committerAlexander Tseung <alextsg@gmail.com>2018-05-12 03:49:17 +0800
commit2381c0e0f461304265279155176fa655e2eb97b4 (patch)
treec0053ef5a62ee246bf02bc2cf7cfe6dae50ed3c9 /test/integration/lib/mascara-first-time.js
parent76ab5c04fae20dc0fd2798ad8a336a0364032aff (diff)
downloadtangerine-wallet-browser-2381c0e0f461304265279155176fa655e2eb97b4.tar.gz
tangerine-wallet-browser-2381c0e0f461304265279155176fa655e2eb97b4.tar.zst
tangerine-wallet-browser-2381c0e0f461304265279155176fa655e2eb97b4.zip
Add new unlock screen design
Diffstat (limited to 'test/integration/lib/mascara-first-time.js')
-rw-r--r--test/integration/lib/mascara-first-time.js19
1 files changed, 16 insertions, 3 deletions
diff --git a/test/integration/lib/mascara-first-time.js b/test/integration/lib/mascara-first-time.js
index 5e07ab0b4..d86703277 100644
--- a/test/integration/lib/mascara-first-time.js
+++ b/test/integration/lib/mascara-first-time.js
@@ -71,10 +71,23 @@ async function runFirstTimeUsageTest (assert, done) {
assert.ok(lock, 'Lock menu item found')
lock.click()
- const pwBox2 = (await findAsync(app, '#password-box'))[0]
- pwBox2.value = PASSWORD
+ await timeout(1000)
- const createButton2 = (await findAsync(app, 'button.primary'))[0]
+ const pwBox2 = (await findAsync(app, '#password'))[0]
+ pwBox2.focus()
+ await timeout(1000)
+
+ // Used to set values on TextField input component
+ const nativeInputValueSetter = Object.getOwnPropertyDescriptor(
+ window.HTMLInputElement.prototype, 'value'
+ ).set
+
+ nativeInputValueSetter.call(pwBox2, PASSWORD)
+
+ var ev2 = new Event('input', { bubbles: true})
+ pwBox2.dispatchEvent(ev2)
+
+ const createButton2 = (await findAsync(app, 'button[type="submit"]'))[0]
createButton2.click()
const detail2 = (await findAsync(app, '.wallet-view'))[0]