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

IBM-Cloud / logistics-wizard-webui / 60
83%

Build:
DEFAULT BRANCH: dev
Ran 10 Sep 2016 11:01PM UTC
Jobs 1
Files 27
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
60

push

travis-ci

web-flow
Global nav role switcher hooked up (#45)

Addresses story #2 and task #5

The dashboard page currently doesn't call the getAdminData. I'll hook that up next to a real lifecycle or action.

Here is what everything looks like:
![screen recording 2016-09-08 at 04 48 pm](https://cloud.githubusercontent.com/assets/8884298/18371523/8d6ef1f0-75fa-11e6-812d-cfc0ad53b272.gif)

## Other changes in this PR
 - Tests now inject the tap event plugin, so that MUI components dont spit out errors
 - Test config removes extra quotes from stringified json strings.

### Demo Data Flow
 - demo module now handles fetching data associated with a demo session and logs in to the supplychainmanager automatically
 - Dashboard component no longer manages data fetching on route loading, instead it is handled properly within the route itself.
 - CreateDemo saga now simply creates a demo and changes the route (In a future task, I want to have it manage adding one retail manager automatically so that demos always begin with that role as a default)

### Mock API / stronger saga tests
 - Sagas tests now make use of state changes from actually calling the reducer, which requires proper data passed in....meaning I needed a way to mock the API calls. I made a mock file that gives back faker data in the shape we currently expect from the API.

What this allows, is for saga tests to properly fail if things change in the way data is passed around and modified (whereas before, we just generated made up objects and so it worked in test, but not in the running app)

The Saga tests look a bit more confusing, but are WAY more solid now. Writing and testing complex async actions has never been fun, but this makes them accurate and stable, which is the real win.

83 of 83 new or added lines in 11 files covered. (100.0%)

259 of 268 relevant lines covered (96.64%)

3.82 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
src/components/GlobalNav/RoleSwitcher/RoleSwitcher.jsx
2
100.0
src/modules/demos.js
5
100.0
src/components/GlobalNav/RoleSwitcher/RoleItem.jsx
Jobs
ID Job ID Ran Files Coverage
1 60.1 10 Sep 2016 11:01PM UTC 0
96.64
Travis Job 60.1
Source Files on build 60
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #60
  • 9628d078 on github
  • Prev Build on dev (#58)
  • Next Build on dev (#61)
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