liqula / react-hs

A GHCJS binding to React based on the Flux design. The flux design pushes state and complicated logic out of the view, allowing the rendering functions and event handlers to be pure Haskell functions.
32 stars 10 forks source link

selenium tests do not work #11

Closed fisx closed 7 years ago

fisx commented 7 years ago

Title says it all. Latest news in the discussion.

Note that selenium grid 3.4.0 failed because the test suite sends invalid requests to the selenium hub. 2.53.1 works fine, even though it is very old.

To reproduce:

  1. make sure you have selenium grid 3.4 installed (not the one we're downgraded to).
  2. cd react-hs/test/spec
  3. stack build --fast
  4. nc -l -p 4444 (the debian package is called netcat) in a different shell
  5. stack exec -- react-hs-spec

output of netcat:

POST /wd/hub/session HTTP/1.1
Host: 127.0.0.1:4444
Accept-Encoding: gzip
Content-Length: 140
Accept: application/json;charset=UTF-8
Content-Type: application/json;charset=UTF-8
Content-Length: 140

{"desiredCapabilities":{"proxy":{"proxyType":"SYSTEM"},"platform":"ANY","browserName":"chrome","chromeOptions":{"args":[],"extensions":[]}}}

The Content-Length field in the header occurs twice, which causes selenium to reject the request with an error.