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

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

Build:
Build:
LAST BUILD BRANCH: bump-deps
DEFAULT BRANCH: master
Ran 16 Jan 2020 04:37PM 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
1240

Pull #403

travis-ci-com

web-flow
Reload the page between every test

The 'should announce status changes using two alternately updated aria live regions' test relies on the autocomplete being in a particular state – the `bump` boolean needs to be false so that the first status ends up in the '__status--A` element rather than `__status--B`. The `bump` boolean is flipped every time a status update is made.

Depending on the number of status updates that have been triggered by previous tests, this means that we cannot guarantee that this will be the case. Because this boolean is encapsulated within the component's React state, we can neither observe nor modify its value.

This problem has been masked by the use of `retries` – if it fails the first time, it should pass the next time as it makes 3 status updates, so the `bump` state should be negated when it's re-tried.

The easiest way to work around this is to reload the page between every test – thus the component should be in the same state as when it was initialised.

We looked at using `browser.reload()` for this, but that is confusingly named as it actually reloads the entire Selenium session, and 'forgets' the URL that is being visited. Calling `browser.url` before each test does what we need.

Co-authored-by: Hanna Laakso <hanna.laakso@digital.cabinet-office.gov.uk>
Pull Request #403: Remove retries for functional tests

192 of 245 branches covered (78.37%)

246 of 272 relevant lines covered (90.44%)

61.32 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1240.1 (CXX=g++-4.8) 16 Jan 2020 04:37PM UTC 0
90.44
Travis Job 1240.1
Source Files on build 1240
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #1240
  • Pull Request #403
  • PR Base - master (#1227)
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