Page MenuHomePhabricator

phantomjs browsertests fails with invalid byte sequence in UTF-8
Closed, InvalidPublic

Description

I have been running the browser tests of UniversalLanguageSelector with phantomjs. It eventually backtrace with:

invalid byte sequence in UTF-8 (ArgumentError)

My command line:

BROWSER_LABEL=phantomjs \
MEDIAWIKI_URL=http://trunk.dev/index.php?title= \
MEDIAWIKI_USER=selenium \
MEDIAWIKI_PASSWORD=### \
bundle exec cucumber --format=html > uls-browsertests.html

Gems:

Gems included by the bundle:

  • builder (3.2.2)
  • bundler (1.3.5)
  • childprocess (0.3.9)
  • cucumber (1.3.9)
  • data_magic (0.16.1)
  • diff-lcs (1.2.5)
  • faker (1.2.0)
  • ffi (1.9.3)
  • gherkin (2.12.2)
  • i18n (0.6.5)
  • json (1.8.1)
  • mediawiki-selenium (0.1.13)
  • mime-types (2.0)
  • multi_json (1.8.2)
  • multi_test (0.0.2)
  • net-http-persistent (2.9)
  • page-object (0.9.3)
  • page_navigation (0.9)
  • rest-client (1.6.7)
  • rspec-expectations (2.14.4)
  • rubyzip (1.0.0)
  • selenium-webdriver (2.37.0)
  • syntax (1.0.0)
  • watir-webdriver (0.6.4)
  • websocket (1.0.7)
  • yml_reader (0.2)

Will attach HTML report and the backtrace


Version: wmf-deployment
Severity: normal

Details

Reference
bz57099

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:13 AM
bzimport set Reference to bz57099.
bzimport added a subscriber: Unknown Object (MLST).

Created attachment 13804
ruby backtrace..

Attached:

Created attachment 13805
HTML report

HTML report generated by cucumber. The last scenario tested is:

Scenario: Sticky input methods Chosen input method selection persists across page loads.

The last step being:

And in it there must be an element with Malayalam text
expected: "ഇൻസ്ക്രിപ്റ്റ് 2"
got: "" (using ==) (RSpec::Expectations::ExpectationNotMetError)

Attached:

And I am using phantomjs 1.9.2.

Antoine, is this still a problem? If yes, please move it to QA component.

(In reply to Željko Filipin from comment #4)

Antoine, is this still a problem? If yes, please move it to QA component.

ping :)

Haven't had a change yet to play the browser tests under phantomjs.

Krinkle lowered the priority of this task from Medium to Low.Mar 2 2015, 2:53 PM
Krinkle set Security to None.
zeljkofilipin claimed this task.
zeljkofilipin subscribed.

@hashar: we are no longer using phantomjs (T113279). Closing as invalid. Please reopen if needed.