• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ssoloff / dice-server-js / 311 / 1
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 23 Dec 2016 07:21PM UTC
Files 39
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Dec 2016 07:01PM UTC coverage: 100.0%. Remained the same
311.1

push

travis-ci

ssoloff
Fix intermittently failing client acceptance test

The scenario "Evaluating empty expressions" in the "Evaluating dice
notation via web UI" feature was failing intermittently when run in
PhantomJS.  The root cause of the failure appears to be that the client
was submitting a blank ("") expression to the server, which caused the
error message to be displayed, thus failing the test.

It is assumed that PhantomJS is not properly honoring the "required"
attribute of the expression input field under some (as yet undetermined)
condition.  When this happens, the client submits the blank expression
to the server, and the server returns an error, which is then displayed.
This is not a race condition because, no matter how long the timeout is
increased to, the error message is always displayed and never removed.

The fix is to ensure the client never sends a falsey expression to the
server.  This serves as a second line of defense in the event the form
validation logic does not work (as happens with PhantomJS).  No
additional logic is performed to ensure the user sees a failure message
because this issue has never been observed in either Firefox or Chrome.
As it only affects PhantomJS, and PhantomJS is headless, attempting to
display some kind of feedback to the user would be pointless.

2023 of 2023 relevant lines covered (100.0%)

6.07 hits per line

Source Files on job 311.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 311
  • Travis Job 311.1
  • a9dc58a6 on github
  • Prev Job for on master (#310.1)
  • Next Job for on master (#312.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc