Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save radoslawroszkowiak/17e53b9043264b6d813df2374e8d4dc8 to your computer and use it in GitHub Desktop.
Save radoslawroszkowiak/17e53b9043264b6d813df2374e8d4dc8 to your computer and use it in GitHub Desktop.
protractor localstorage
rroszkowiak@RR-T460p:~/myfolder/e2e-storage-test (yarn-lock) $ ng e2e
** NG Live Development Server is running on http://localhost:4200. **
Hash: b322fd8016d9bf83307a
Time: 9340ms
chunk {0} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 426 kB {4} [initial] [rendered]
chunk {1} main.bundle.js, main.bundle.js.map (main) 23.6 kB {3} [initial] [rendered]
chunk {2} styles.bundle.js, styles.bundle.js.map (styles) 10.3 kB {4} [initial] [rendered]
chunk {3} vendor.bundle.js, vendor.bundle.js.map (vendor) 3.53 MB [initial] [rendered]
chunk {4} inline.bundle.js, inline.bundle.js.map (inline) 0 bytes [entry] [rendered]
webpack: Compiled successfully.
[19:25:07] I/update - chromedriver: file exists /home/myfolder/e2e-storage-test/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_2.27.zip
[19:25:07] I/update - chromedriver: unzipping chromedriver_2.27.zip
[19:25:07] I/update - chromedriver: setting permissions to 0755 for /home/myfolder/e2e-storage-test/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_2.27
[19:25:07] I/update - chromedriver: chromedriver_2.27 up to date
[19:25:07] I/launcher - Running 1 instances of WebDriver
[19:25:07] I/direct - Using ChromeDriver directly...
[19:25:09] E/launcher - Error: ReferenceError: localStorage is not defined
at Object.exports.localStorageSync (/home/myfolder/e2e-storage-test/node_modules/ngrx-store-localstorage/src/index.ts:118:77)
at Object.<anonymous> (/home/myfolder/e2e-storage-test/src/app/reducers/index.ts:32:3)
at Module._compile (module.js:570:32)
at Module.m._compile (/home/myfolder/e2e-storage-test/node_modules/ts-node/src/index.ts:406:23)
at Module._extensions..js (module.js:579:10)
at Object.require.extensions.(anonymous function) [as .ts] (/home/myfolder/e2e-storage-test/node_modules/ts-node/src/index.ts:409:12)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/myfolder/e2e-storage-test/src/app/containers/login/login.component.ts:9:21)
at Module._compile (module.js:570:32)
at Module.m._compile (/home/myfolder/e2e-storage-test/node_modules/ts-node/src/index.ts:406:23)
at Module._extensions..js (module.js:579:10)
at Object.require.extensions.(anonymous function) [as .ts] (/home/myfolder/e2e-storage-test/node_modules/ts-node/src/index.ts:409:12)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/myfolder/e2e-storage-test/src/app/app-routing.module.ts:4:1)
at Module._compile (module.js:570:32)
at Module.m._compile (/home/myfolder/e2e-storage-test/node_modules/ts-node/src/index.ts:406:23)
at Module._extensions..js (module.js:579:10)
at Object.require.extensions.(anonymous function) [as .ts] (/home/myfolder/e2e-storage-test/node_modules/ts-node/src/index.ts:409:12)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/myfolder/e2e-storage-test/e2e/index/app.e2e-spec.ts:3:1)
at Module._compile (module.js:570:32)
at Module.m._compile (/home/myfolder/e2e-storage-test/node_modules/ts-node/src/index.ts:406:23)
at Module._extensions..js (module.js:579:10)
at Object.require.extensions.(anonymous function) [as .ts] (/home/myfolder/e2e-storage-test/node_modules/ts-node/src/index.ts:409:12)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at /home/myfolder/e2e-storage-test/node_modules/jasmine/lib/jasmine.js:87:5
at Array.forEach (native)
at Jasmine.loadSpecs (/home/myfolder/e2e-storage-test/node_modules/jasmine/lib/jasmine.js:86:18)
at Jasmine.execute (/home/myfolder/e2e-storage-test/node_modules/jasmine/lib/jasmine.js:181:8)
at /home/myfolder/e2e-storage-test/node_modules/protractor/built/frameworks/jasmine.js:132:15
at Function.promise (/home/myfolder/e2e-storage-test/node_modules/q/q.js:682:9)
at /home/myfolder/e2e-storage-test/node_modules/protractor/built/frameworks/jasmine.js:104:14
at _fulfilled (/home/myfolder/e2e-storage-test/node_modules/q/q.js:834:54)
at self.promiseDispatch.done (/home/myfolder/e2e-storage-test/node_modules/q/q.js:863:30)
at Promise.promise.promiseDispatch (/home/myfolder/e2e-storage-test/node_modules/q/q.js:796:13)
at /home/myfolder/e2e-storage-test/node_modules/q/q.js:556:49
at runSingle (/home/myfolder/e2e-storage-test/node_modules/q/q.js:137:13)
at flush (/home/myfolder/e2e-storage-test/node_modules/q/q.js:125:13)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
[19:25:09] E/launcher - Process exited with error code 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment