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

alphagov / accessible-autocomplete / 1148
90%
master: 90%

Build:
Build:
LAST BUILD BRANCH: bump-deps
DEFAULT BRANCH: master
Ran 17 Sep 2019 05:09PM UTC
Jobs 1
Files 4
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

pending completion
1148

push

travis-ci-com

hannalaakso
Only run aria-live tests in Chrome, bump timeout

## Problem

We were seeing the new integration tests fail as they didn't complete
within the set time limit of 2000ms.

This would happen when they were run through Saucelabs as done on CI
or when you have the Saucelabs set up to run locally. When Saucelabs
is not available, the tests are run through Karma/headless Chrome,
which seems to reliably pass.

## Solution
Solution 3 to keep some test coverage, while also trying to ensure that
our PRs don't start failing due to Saucelabs timer issues. With this in
mind, we should keep an eye on the tests on CI going forward.

## Explored solutions
###  1. Remove the timeout limit
Setting timeout on
[waitUntil](https://webdriver.io/docs/api/browser/waitUntil.html)
is optional.

However removing it throws
```
Promise was rejected for the following reason: timeout
```

### 2. Increase the timeout limit
-Chrome on Saucelabs would intermittently fail within 2000ms; Firefox
and IE would always fail
- On 3000ms Firefox and IE11 would still fail.
- On 4000ms IE11 was flaky.
- IE10 needed at least 6000ms to pass, whilst IE9 wouldn't pass even
at 10000ms.
- Additionally, Firefox would fail intermittently regardless of the timeout
limit set.

### 3. Limit scope of tests
As Chrome seemed most reliable to run the tests with, we only run these tests
through Saucelabs only in Chrome on Windows 10.

However even then we would occassionally see the tests in Chrome fail within
the 2000ms limit.

We increased the limit to 10000ms, at which point no issues were observed.

### 4. Move the tests to /tests/functional
Saucelabs runs tests in tests/integration. karma/headless chrome run tests in
tests/functional.

Tests on the original PR would have been run through karma/headless Chrome as
Saucelabs wasn't available. They seem too flaky to run through Saucelabs because
of timer issues so we investigated moving them to /tests/functional.

However we found that trying to create the int... (continued)

191 of 243 branches covered (78.6%)

245 of 271 relevant lines covered (90.41%)

61.41 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1148.1 (CXX=g++-4.8) 17 Sep 2019 05:09PM UTC 0
90.41
Travis Job 1148.1
Source Files on build 1148
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #1148
  • 2c36eb31 on github
  • Next Build on fix-saucelabs-tests (#1153)
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