qt - Capybara-Webkit: js/React is missing & Can't find variable: WeakMap -


i using capybara-webkit in step-definitions cucumber feature files. particular scenario tests successful login system. capybara loads login form, enters username , password perfectly, yet when hits login button gets hung on loading page , never logs in.

the errors printed out console are:

  1. referenceerror: can't find variable: weakmap

  2. error: js/react missing

  3. |typeerror: undefined not object (evaluating 'reagent.impl.util.memoize_1.call')
  4. typeerror: undefined not object (evaluating 'window["deps"]["fine"]')
  5. feature :formatters cannot installed. unsupported javascript context: mozilla/5.0 (macintosh; intel mac os x) applewebkit/538.1 (khtml, gecko) capybara-webkit safari/538.1.
  6. error: js/reactdom missing
  7. (typeof goog == \"undefined\") console.warn(\"clojurescript not load :main, did forget specify :asset-path?\");goog.require(\"myapp.app\")

relevant info:

  • using qt version 5.5.1 in /usr/local/cellar/qt@5.5/5.5.1_1/lib

  • echo $path => /usr/local/opt/qt@5.5/bin

  • using macos sierra 10.12.5

  • xcode version 8.3.3

from gather forums (this 1 specifically: https://github.com/thoughtbot/capybara-webkit/issues/849) lack of qtwebkit: 5.5.1 support es6 might issue. have tried installing older version of qt (qt-everywhere-opensource-src-5.4.2) getting build errors, , if did work not long term solution use older version.

any assistance on issue appreciated. thank you

capybara-webkit supports @ es5. using es6 features (weakmap,etc). in order test app using capybara-webkit app needs transpiled/polyfilled es5 compatibility using babel, etc. reverting older qt, make support level in capybara-webkit worse, that's not short term solution. if don't want transpile/polyfil solution change using capybara-webkit using selenium headless chrome (although has few things don't work - resizing windows, multiple windows)


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -