Anda di halaman 1dari 4

> blockstack-browser@0.36.

3 test-e2e D:\Automation\blockstack-browser-master>
cross-env-shell mocha --opts test-e2e/mocha.opts test-e2e --grep=$TEST_E2E_GREP

WARNING: The browser host url was not set via the E2E_BROWSER_HOST env var..
running tests against the production endpoint
"https://browser.blockstack.org"

account-creation [win32 chrome]

DevTools listening on ws://127.0.0.1:49448/devtools/browser/9aecc396-e083-4ffd-


9e27-a2c909d4dcce
√ create selenium webdriver (2606ms)
√ load initial page (30462ms)
√ set "test-registrar.blockstack.org" as API endpoint for ID registration
√ load create new ID page (228ms)
√ enter unique username (3142ms)
√ enter password (1055ms)
√ wait for creating Blockstack ID spinner (23072ms)
√ enter email (884ms)
Retrying after getting error: TimeoutError: Waiting for element to be located
By(xpath, //*[contains(., "email failed")])
Wait timed out after 2564ms
√ expect recovery email to fail (3330ms)
√ check username registration failed (2707ms)
Retrying after getting error: StaleElementReferenceError: stale element reference:
element is not attached to the page document
(Session info: chrome=75.0.3770.100)
(Driver info: chromedriver=2.46.628402
(536cd7adbad73a3783fdc2cab92ab2ba7ec361e1),platform=Windows NT 10.0.17134 x86_64)
√ acknowledge saving recovery key phrase (1691ms)
√ wait for "unlocking recovery key" (28633ms)
√ get secret recovery key phrase (218ms)
√ perform recovery key phrase verification instructions (2826ms)
√ load main page as authenticated user (1214ms)

account-creation [win32 firefox]


√ create selenium webdriver (4479ms)
√ load initial page (15063ms)
√ set "test-registrar.blockstack.org" as API endpoint for ID registration
√ load create new ID page (385ms)
√ enter unique username (1980ms)
√ enter password (786ms)
√ wait for creating Blockstack ID spinner (16934ms)
√ enter email (565ms)
√ expect recovery email to fail (1061ms)
√ check username registration failed (2555ms)
√ acknowledge saving recovery key phrase (2057ms)
√ wait for "unlocking recovery key" (19926ms)
√ get secret recovery key phrase (393ms)
√ perform recovery key phrase verification instructions (3169ms)
√ load main page as authenticated user (1289ms)

account-recovery-via-magic-recovery-code [win32 chrome]

DevTools listening on ws://127.0.0.1:49531/devtools/browser/409534c3-8c21-4024-


9bec-2c432bbea5f6
√ create selenium webdriver (1857ms)
√ load initial page (13826ms)
√ load sign in page (142ms)
√ enter secret recovery key (2962ms)
√ enter password (669ms)
√ wait for "Loading" spinner (18704ms)
√ enter email (986ms)
√ wait for "Restoring your Blockstack ID" (14551ms)
√ load main page as authenticated user (39ms)

account-recovery-via-magic-recovery-code [win32 firefox]


√ create selenium webdriver (5015ms)
√ load initial page (16164ms)
√ load sign in page (293ms)
√ enter secret recovery key (1797ms)
√ enter password (445ms)
√ wait for "Loading" spinner (11055ms)
√ enter email (758ms)
√ wait for "Restoring your Blockstack ID" (22642ms)
√ load main page as authenticated user

account-recovery-via-secret-key [win32 chrome]

DevTools listening on ws://127.0.0.1:49598/devtools/browser/7b4c648e-0a3f-4907-


b7b3-12693a4f137e
√ create selenium webdriver (1879ms)
√ load initial page (20680ms)
√ load sign in page (148ms)
√ enter secret recovery key (2925ms)
√ create password (1106ms)
√ enter email (1091ms)
√ wait for "Restoring your Blockstack ID" (46099ms)
√ load main page as authenticated user (51ms)

account-recovery-via-secret-key [win32 firefox]


√ create selenium webdriver (4993ms)
√ load initial page (21384ms)
√ load sign in page (302ms)
√ enter secret recovery key (3167ms)
√ create password (666ms)
√ enter email (792ms)
√ wait for "Restoring your Blockstack ID" (20162ms)
√ load main page as authenticated user

login-to-hello-blockstack-app [win32 chrome]


hello-blockstack server started on http://localhost:5790

DevTools listening on ws://127.0.0.1:49676/devtools/browser/30b17bf6-9720-473b-


84ca-c82c23c03b5c
√ create selenium webdriver (1807ms)
√ load initial page (21215ms)
Retrying after getting error: TimeoutError: Waiting for element to be located
By(css selector, *[id="apps-loaded"])
Wait timed out after 2549ms
√ load app list (5451ms)
√ fast account recovery via localStorage update (164ms)
√ load page (537ms)
√ set blockstack auth host
√ click login button (20437ms)
[10288:9400:0629/001930.439:ERROR:shader_disk_cache.cc(258)] Failed to create
shader cache entry: -2
√ wait for auth page to load (1990ms)
√ click allow auth button (2619ms)
√ ensure logged into hello-blockstack app (2354ms)
√ validate blockstack user data
√ validate blockstack.encryptContent(...) & blockstack.decryptContent(...) with
account key (113ms)
√ validate blockstack.encryptContent(...) & blockstack.decryptContent(...) with
specified keys (42ms)
√ validate blockstack.getAppBucketUrl(...) (1054ms)
√ validate blockstack.putFile(...) (2700ms)
√ validate blockstack.getFile(...) (2109ms)
√ validate blockstack.listFiles(...) (1481ms)
√ validate blockstack.getUserAppFileUrl(...) (2324ms)
√ validate blockstack.getFile(...) with multi-player storage (1525ms)
√ validate blockstack.signUserOut(...) (318ms)
√ validate localStorage user data is been cleared

login-to-hello-blockstack-app [win32 firefox]


√ create selenium webdriver (4989ms)
√ load initial page (20515ms)
Retrying after getting error: TimeoutError: Waiting for element to be located
By(css selector, *[id="apps-loaded"])
Wait timed out after 2506ms
√ load app list (6217ms)
√ fast account recovery via localStorage update (175ms)
√ load page (419ms)
√ set blockstack auth host
Performing window open & switch workaround for closing protocol handler dialog
1) click login button
screenshot saved to "C:\Users\Dell\AppData\Local\Temp\test-errors\login-to-hello-
blockstack-app-[win32-firefox]-click-login-button-156174782-w5sjd.png"
Selenium log API not supported for this environment: UnknownCommandError: POST
/session/2a605ff7-8a6a-4c64-b609-fde9bb06b0af/log did not match a known command
- wait for auth page to load
- click allow auth button
- ensure logged into hello-blockstack app
- validate blockstack user data
- validate blockstack.encryptContent(...) & blockstack.decryptContent(...) with
account key
- validate blockstack.encryptContent(...) & blockstack.decryptContent(...) with
specified keys
- validate blockstack.getAppBucketUrl(...)
- validate blockstack.putFile(...)
- validate blockstack.getFile(...)
- validate blockstack.listFiles(...)
- validate blockstack.getUserAppFileUrl(...)
- validate blockstack.getFile(...) with multi-player storage
- validate blockstack.signUserOut(...)
- validate localStorage user data is been cleared

91 passing (9m)
14 pending
1 failing

1) login-to-hello-blockstack-app [win32 firefox]


click login button:
JavascriptError: Error: Access to 'about:config' from script denied
at Object.throwDecodedError (D:\Automation\blockstack-browser-
master\node_modules\selenium-webdriver\lib\error.js:550:15)
at parseHttpResponse (D:\Automation\blockstack-browser-
master\node_modules\selenium-webdriver\lib\http.js:560:13)
at Executor.execute (D:\Automation\blockstack-browser-
master\node_modules\selenium-webdriver\lib\http.js:486:26)
at process._tickCallback (internal/process/next_tick.js:68:7)

events.js:174
throw er; // Unhandled 'error' event
^

Error: spawn mocha ENOENT


at notFoundError (D:\Automation\blockstack-browser-master\node_modules\cross-
spawn\lib\enoent.js:6:26)
at verifyENOENT (D:\Automation\blockstack-browser-master\node_modules\cross-
spawn\lib\enoent.js:40:16)
at ChildProcess.cp.emit (D:\Automation\blockstack-browser-
master\node_modules\cross-spawn\lib\enoent.js:27:25)
at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
Emitted 'error' event at:
at ChildProcess.cp.emit (D:\Automation\blockstack-browser-
master\node_modules\cross-spawn\lib\enoent.js:30:37)
at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)