Skip to content

Instantly share code, notes, and snippets.

@paulfalgout
Created August 8, 2018 06:06
Show Gist options
  • Save paulfalgout/8693cbb8fab358f3cb95067fb2e95056 to your computer and use it in GitHub Desktop.
Save paulfalgout/8693cbb8fab358f3cb95067fb2e95056 to your computer and use it in GitHub Desktop.
Serialized preprocessing
7====================================================================================================
(Run Starting)
7 ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Cypress: 3.0.3 │
│ Browser: Chrome 68 │
│ Specs: 2 found (ci.js, unit.js) │
│ Searched: assets/tests/integration/*.js │
│ Run URL: https://dashboard.cypress.io/#/projects/4a82d650-339e-4759-a4b4-3ad4f228e95f/runs… │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
7────────────────────────────────────────────────────────────────────────────────────────────────────
Running: ci.js... (1 of 2)
cypress:webpack get /home/travis/build/RoundingWell/RWell/mainapp/assets/tests/integration/ci.js +35s
cypress:webpack input: /home/travis/build/RoundingWell/RWell/mainapp/assets/tests/integration/ci.js +0ms
cypress:webpack output: /home/travis/.config/Cypress/cy/production/projects/mainapp-0c25e55c8ece46c91182476a09911424/bundles/assets/tests/integration/ci.js +0ms
cypress:webpack compile /home/travis/build/RoundingWell/RWell/mainapp/assets/tests/integration/ci.js +171ms
(node:5845) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead
cypress:webpack get /home/travis/build/RoundingWell/RWell/mainapp/assets/tests/support/index.js +28ms
cypress:webpack input: /home/travis/build/RoundingWell/RWell/mainapp/assets/tests/support/index.js +1ms
cypress:webpack output: /home/travis/.config/Cypress/cy/production/projects/mainapp-0c25e55c8ece46c91182476a09911424/bundles/assets/tests/support/index.js +0ms
cypress:webpack compile /home/travis/build/RoundingWell/RWell/mainapp/assets/tests/support/index.js +10ms
cypress:webpack finished bundling /home/travis/.config/Cypress/cy/production/projects/mainapp-0c25e55c8ece46c91182476a09911424/bundles/assets/tests/integration/ci.js +7s
cypress:webpack - compile finished for /home/travis/build/RoundingWell/RWell/mainapp/assets/tests/integration/ci.js +2ms
cypress:webpack finished bundling /home/travis/.config/Cypress/cy/production/projects/mainapp-0c25e55c8ece46c91182476a09911424/bundles/assets/tests/support/index.js +182ms
cypress:webpack - compile finished for /home/travis/build/RoundingWell/RWell/mainapp/assets/tests/support/index.js +0ms
Integration Tests
Add New Clinician
✓ setting a blank mobile phone field (3833ms)
✓ setting the mobile phone field to an invalid US format (3742ms)
✓ setting the mobile phone field to a valid US format (2900ms)
✓ disabling the mobile phone field (2350ms)
✓ Unsuccessful form submission (1129ms)
Clinician Profile
When a profile is editable
✓ editing the form (788ms)
When a profile is not editable
✓ should not render an 'edit' button in the basics region (627ms)
When editing a profile
✓ entering a phone number (1468ms)
Group's Clinicians page
✓ sorting clinicians (2627ms)
with clinicians
✓ loading the Clinicians page for a particular group (765ms)
✓ hovering over clinician tooltips (2730ms)
wihout clinicians
✓ loading the Clinicians page for a particular group (705ms)
Published Pathway Page
✓ displaying a note in a tooltip (1068ms)
✓ displaying factors without a pathway (567ms)
✓ displaying factors with a pathway (672ms)
✓ displaying a shared pathway (980ms)
Setting pathway target adherence
when pathway is unpublished
✓ should show the target adherence button (613ms)
when pathway has no target adherence and ts
✓ clicking the target adherence button (1024ms)
✓ saving with no target adherence (859ms)
✓ saving a target adherence (2069ms)
when pathway has a target adherence and ts
✓ clicking the target pathway adherence button (877ms)
✓ removing a target (990ms)
Unpublished Pathway Page
when the current user owns the pathway
✓ should render the context menu with "Unpublished" selected (973ms)
✓ adding a factor (1007ms)
✓ deleting a factor (786ms)
✓ Adding a task (8405ms)
✓ Editing an existing task list (2149ms)
✓ Removing a task (1102ms)
✓ Publishing a pathway (1085ms)
when the current user does not own the pathway
✓ should prevent the user from editing the pathway (1023ms)
Pathway List
✓ displaying 10 pathways (858ms)
✓ displaying 0 pathways (593ms)
✓ displaying a shared pathway (890ms)
✓ displaying an unpublished pathway (566ms)
✓ displaying a published pathway (637ms)
Filter State
✓ it should store the selected filter when app is stopped and restarted (1444ms)
Generic Custom List
✓ sorting (1060ms)
✓ displaying a Large Quantity Custom List (965ms)
✓ Searching Custom List (1055ms)
✓ displaying Empty Custom List (576ms)
✓ Displaying frontend columns (970ms)
localStorage
✓ setting the state in localStorage (551ms)
✓ using out of date localStorage (539ms)
✓ changing the state (1141ms)
Filtering Custom Lists
✓ displaying a list with no filters defined (561ms)
✓ displaying a list with filters defined (914ms)
✓ displaying a list with custom filters defined but no default filters set (803ms)
Pathway List Columns
✓ Displaying columns (215ms)
Pathway List Filters
✓ Displaying filters (229ms)
Patient List Columns
✓ Displaying columns (251ms)
Patient List Filters
✓ Displaying filters (233ms)
Task List Columns
✓ Displaying columns (259ms)
Task List Filters
✓ Displaying filters (270ms)
App Nav
✓ selecting a nav item (1474ms)
✓ displaying the current app navItems list with a button (549ms)
Care Coordination Insights
✓ displaying the Summary Section (1128ms)
✓ displaying the Clinician Actions Section (1133ms)
✓ displaying the Completed Tasks Section (1157ms)
✓ displaying the To Be Completed Tasks Section (965ms)
Engagement Insights
✓ displaying the Summary Section (969ms)
✓ displaying the Engagement Status Section (1429ms)
✓ displaying Engagement On/Off Section (1018ms)
Insights App
Filters bar
✓ displaying the engagement app (624ms)
✓ displaying the risk-identification app (589ms)
✓ displaying the risk-prevalence app (547ms)
✓ displaying the care-coordination app (549ms)
✓ displaying the pathway-adherence app (510ms)
✓ displaying filters for any Insights page (933ms)
✓ displaying insights for only one patient group (464ms)
✓ displaying insights for more than one patient group (676ms)
Pathway Adherence Drilldown Insights
✓ display basic adherence information (595ms)
✓ clicking the breadcrumb, a pathway row and a patient name (1204ms)
✓ displaying adherence rate (722ms)
✓ sorting columns (1985ms)
✓ displaying an Open drilldown page (535ms)
✓ displaying a closed-this-month drilldown page (664ms)
✓ displaying a closed-last-month pathway drilldown (591ms)
✓ displaying drilldown for a specific group (594ms)
✓ displaying an empty drilldown page (535ms)
Pathway Adherence Insights
When there are pathways
✓ displaying list meta data & clicking adherence numbers (1241ms)
✓ filtering pathways (838ms)
✓ sorting pathways (1969ms)
✓ displaying published, unpublished & shared pathways (920ms)
✓ displaying adherence numbers relative to target (578ms)
✓ displaying a pathway with no entries for a given adherence period (651ms)
When the connection is delayed
✓ should make another request if a group is selected before data returns (2015ms)
When there are no pathways
✓ displaying the emptyView (469ms)
Risk Identification Insights
✓ displaying the Summary Sectionm (902ms)
✓ displaying the Risk Status Section (1220ms)
Risk Prevalence Insights
✓ displaying empty results (436ms)
✓ displaying risk prevalence data (585ms)
Create Patient
✓ displaying groups (646ms)
Custom Pathway List
✓ Displaying list results (762ms)
✓ Displaying the empty view (504ms)
Custom Patients List
✓ Patient List Filters (987ms)
✓ Displaying list count (701ms)
✓ Displaying patient FE columns (1392ms)
Custom Task List
1) Displaying list results
✓ Displaying the empty view (549ms)
Inbox List
✓ displaying no notifications (650ms)
when there are notifications
✓ displaying Group Actions Notifications (1614ms)
✓ displaying Patient Risk Notifications (1184ms)
Patients Pathway Dashboard
✓ Displaying the list (995ms)
✓ Displaying an empty list (473ms)
localStorage
✓ setting the list state with localstorage (531ms)
✓ changing the list state (981ms)
Add Risk Factors
✓ Displaying a risk that has a pathway (979ms)
✓ Displaying a risk that does not have a pathway (798ms)
✓ Editing an existing risk (1389ms)
✓ Editing an existing risk that has pathway factors applied (921ms)
✓ Creating a new pathway risk that has core tasks and factors with pathways (1329ms)
✓ Creating a risk that has all pathway factors (601ms)
✓ Creating a risk that does not have a pathway (758ms)
✓ Adding multiple factors associated with the same pathway block (1613ms)
Back to List
✓ clicking the back to list button (4460ms)
CCM Report
✓ displaying the CCM report (1454ms)
✓ clicking "View Printable Report" (862ms)
✓ displaying no activity items (555ms)
Patient Check-In
✓ displaying an Assessment in the Context Trail (1157ms)
✓ displaying a Check-In in the Context Trail (765ms)
Patient History
✓ displaying the Context Trail (854ms)
✓ displaying CCM History Items (654ms)
✓ displaying Check-In History Items (983ms)
✓ displaying CCM Monthly Report Items (779ms)
✓ displaying Closed Risk Items (706ms)
✓ displaying Group Action Items (1096ms)
✓ displaying a Disease Focus Changed Item (579ms)
Engagement Status Items
✓ displaying standard format status items0m (572ms)
✓ displaying custom format status items (545ms)
Patient Overview
✓ displaying the Context Trail (683ms)
✓ scrolling the Context Trail (1922ms)
✓ displaying CCM History Items (621ms)
✓ displaying Check-In History Items (1046ms)
✓ displaying Assessment History Items with zero score (594ms)
✓ displaying CCM Monthly Report Items (736ms)
✓ displaying Closed Risk Items (696ms)
✓ displaying Group Action Items (1209ms)
✓ displaying a Disease Focus Changed Item (581ms)
✓ clicking a view only patient (730ms)
✓ clicking the History button (814ms)
Risks List
✓ displaying the risk list (1391ms)
✓ displaying an empty risk list (556ms)
when an organization does not have any assessments
✓ should not display the new assessment button (682ms)
Engagement Status Items
✓ displaying standard format status items (597ms)
✓ displaying custom format status items (615ms)
Recent Items
✓ displaying items older than 30 days (742ms)
✓ displaying the first 7 items (614ms)
Patient Pathway Activity
✓ viewing an open pathway (1003ms)
✓ viewing a closed pathway (811ms)
Patient Pathway Factors
✓ displaying the Factor dropdown (900ms)
Patient Pathway Tasks
✓ Adding a task (7840ms)
✓ Editing an existing task list (2216ms)
✓ Completing a task while editing (2994ms)
✓ Removing a task (943ms)
✓ Adding a direct message (7658ms)
Patient Profile
Basics Section
✓ displaying the patient name (2092ms)
✓ displaying the patient Date of Birth (1552ms)
✓ displaying the patient Phone (2191ms)
Engagement section
✓ displaying the SMS Phone Number (2309ms)
✓ patient opting out of text message alerts (587ms)
✓ turning off engagement (1233ms)
Engagement Status
✓ setting engagement status to enrolled (760ms)
✓ setting engagement status to scheduled (790ms)
✓ setting engagement status to active (738ms)
✓ setting engagement status to paused (809ms)
✓ setting engagement status to not_responding (810ms)
✓ setting engagement status to inactive (787ms)
Patient Management Section
✓ displaying the patient groups and ESCO (713ms)
✓ clicking a group field (907ms)
✓ displaying the clinician select menu (772ms)
✓ displaying the clinician name (1067ms)
✓ turning Chronic Care Management on/off (1225ms)
Relationships Section
✓ displaying the Relationships Section (2081ms)
Patient Search/Browse Risk
✓ filtering by pathway risks (1428ms)
✓ unfiltering pathway risks (1559ms)
✓ filtering by all risks (1554ms)
✓ searching (2116ms)
Patient Sidebar
✓ displaying Patient basics (760ms)
✓ displaying a Darwin Score (1097ms)
✓ displaying a patient with out a Darwin Score or PAM Level (707ms)
✓ displaying a patient with a phone number (566ms)
✓ displaying a patient with no phone number (649ms)
✓ displaying a patient with no risks (592ms)
✓ displaying a patient with risks (533ms)
✓ displaying a patient's groups (683ms)
Patient with engagement turned off
✓ displaying the no access reason (552ms)
✓ displaying the optout reason (578ms)
✓ displaying the clinically na reason (653ms)
✓ displaying the other reason (515ms)
All Patients
✓ loading the All Patients page (497ms)
All Patients List
✓ displaying the patients list (2967ms)
Patients I'm Following page
✓ loading the patients I'm Following page (1154ms)
Recent Removals
✓ sorting (1010ms)
192 passing (4m)
1 failing
1) Integration Tests Custom Task List Displaying list results:
Uncaught TypeError: this.ui.taskName.toggleClass is not a function
This error originated from your application code, not from Cypress.
When Cypress detects uncaught errors originating from your application it will automatically fail the current test.
This behavior is configurable, and you can choose to turn this off by listening to the 'uncaught:exception' event.
https://on.cypress.io/uncaught-exception-from-application
at n.toggleHover (http://localhost:38175/dist/rwprovider.85cf0100f4ae2d51c8d9.js:1:789375)
at V (http://localhost:38175/dist/vendors-rwprovider.849b5fbfdb0e509ba205.js:1:74316)
at http://localhost:38175/dist/vendors-rwprovider.849b5fbfdb0e509ba205.js:1:74518
at http://localhost:38175/dist/vendors-rwprovider.849b5fbfdb0e509ba205.js:1:67670
at http://localhost:38175/dist/vendors-rwprovider.849b5fbfdb0e509ba205.js:1:75205
(Results)
┌─────────────────────────────────────┐
│ Tests: 193 │
│ Passing: 192 │
│ Failing: 1 │
│ Pending: 0 │
│ Skipped: 0 │
│ Screenshots: 1 │
│ Video: false │
│ Duration: 3 minutes, 44 seconds │
│ Spec Ran: ci.js │
└─────────────────────────────────────┘
(Screenshots)
- /home/travis/build/RoundingWell/RWell/mainapp/assets/tests/reports/screenshots/ci.js/Integration Tests -- Custom Task List -- Displaying list results (failed).png (1050x938)
(Uploading Results)
cypress:webpack close /home/travis/build/RoundingWell/RWell/mainapp/assets/tests/integration/ci.js +4m
- Done Uploading (1/1) /home/travis/build/RoundingWell/RWell/mainapp/assets/tests/reports/screenshots/ci.js/Integration Tests -- Custom Task List -- Displaying list results (failed).png
7────────────────────────────────────────────────────────────────────────────────────────────────────
Running: unit.js... (2 of 2)
cypress:webpack get /home/travis/build/RoundingWell/RWell/mainapp/assets/tests/integration/unit.js +13s
cypress:webpack input: /home/travis/build/RoundingWell/RWell/mainapp/assets/tests/integration/unit.js +1ms
cypress:webpack output: /home/travis/.config/Cypress/cy/production/projects/mainapp-0c25e55c8ece46c91182476a09911424/bundles/assets/tests/integration/unit.js +0ms
cypress:webpack compile /home/travis/build/RoundingWell/RWell/mainapp/assets/tests/integration/unit.js +43ms
cypress:webpack warnings for /home/travis/.config/Cypress/cy/production/projects/mainapp-0c25e55c8ece46c91182476a09911424/bundles/assets/tests/integration/unit.js +11s
cypress:webpack [ './assets/tests/unit/custom-list.js\nModule Error (from ../node_modules/eslint-loader/index.js):\n\n\u001b[4m/home/travis/build/RoundingWell/RWell/mainapp/assets/tests/unit/custom-list.js\u001b[24m\n \u001b[2m1:1\u001b[22m \u001b[31merror\u001b[39m Expected space or tab after \'//\' in comment \u001b[2mspaced-comment\u001b[22m\n \u001b[2m8:1\u001b[22m \u001b[31merror\u001b[39m Expected space or tab after \'//\' in comment \u001b[2mspaced-comment\u001b[22m\n\n\u001b[31m\u001b[1m✖ 2 problems (2 errors, 0 warnings)\u001b[22m\u001b[39m\n\u001b[31m\u001b[1m\u001b[22m\u001b[39m\u001b[31m\u001b[1m 2 errors, 0 warnings potentially fixable with the `--fix` option.\u001b[22m\u001b[39m\n\u001b[31m\u001b[1m\u001b[22m\u001b[39m\n @ ./assets/tests/unit sync ^(.*\\.(js$))[^.]*$/\n @ ./assets/tests/integration/unit.js' ] +0ms
cypress:webpack finished bundling /home/travis/.config/Cypress/cy/production/projects/mainapp-0c25e55c8ece46c91182476a09911424/bundles/assets/tests/integration/unit.js +1ms
cypress:webpack - compile finished for /home/travis/build/RoundingWell/RWell/mainapp/assets/tests/integration/unit.js +0ms
Unit Tests
./apps/globals/table_app.js
TableApp
When changing the sort state of the app
✓ should call showTableHeader (281ms)
✓ should call sortTable (55ms)
When sorting the table
✓ should not try to sort the table if tableBody does not exist (51ms)
✓ should call setComparator when sortTable is called (63ms)
✓ should trigger the column:sort event (69ms)
When column sorting is disabled
✓ should trigger the column:sortDisabled event (78ms)
When interacting with the tableBody
When clicking on a row
✓ should trigger the row:select event (75ms)
When the list count changes
✓ should trigger the change:listCount event (73ms)
./config.js
when requiring config
✓ should return the default BASE_URL as "/" (51ms)
./custom-list.js
Custom List Compatibility Tests
Pathways Cells
✓ Change with caution (51ms)
Patients Cells
✓ Change with caution
Tasks Cells
✓ Change with caution (48ms)
Pathways Filters
✓ Change with caution (337ms)
Patients Filters
✓ Change with caution (65ms)
Tasks Filters
✓ Change with caution (44ms)
Pathways Columns
✓ Change with caution (45ms)
Patients Columns
✓ Change with caution (61ms)
Tasks Columns
✓ Change with caution (42ms)
./entities-service/activity.js
when requesting activity:model
✓ should return a ActivityItem (42ms)
when requesting activity:collection
✓ should return an ActivityCollection (48ms)
when requesting fetch:activity:byOrgpatient
✓ should request by the orgPatientId (45ms)
✓ should resolve an activity collection (55ms)
./entities-service/entities/activity.js
ActivityCollection
✓ should contain unique models
#getRecent
✓ should return a collection instance (63ms)
✓ should return only models in the past 30 days (53ms)
✓ should return a maximum of 7 results (98ms)
ActivityModel
✓ should be a UniqueModel (43ms)
./entities-service/entities/factor.js
Factor
FactorCollection
✓ should contain unique models (53ms)
FactorModel
✓ should be a UniqueModel (41ms)
./entities-service/entities/nav-item.js
NavItemCollection
✓ should contain unique models (59ms)
NavItemModel
✓ should be a UniqueModel (44ms)
when nav item is inbox
✓ should return true for isInbox (41ms)
./entities-service/entities/nav-section.js
NavSectionCollection
✓ should contain unique models (61ms)
NavSectionModel
✓ should be a UniqueModel (43ms)
./entities-service/entities/notification.js
NotificationCollection
✓ should contain unique models (113ms)
✓ should sort the NotificationCollection by their action_ts (61ms)
#getStats
✓ should return the event_type of the collection (67ms)
#getRiskClosed
✓ should return one closed risk notification (95ms)
when no closed risk notifications
✓ should return nothing (131ms)m
#getFollowerAddRemove
when no follower add notifications
✓ should return a follower remove notification (118ms)
when no follower remove notifications
✓ should return a follower add notification (110ms)
when no follower notifications
✓ should return no notification (70ms)
NotificationModel
✓ should be a UniqueModel
./entities-service/entities/orgpatient.js
OrgPatientCollection
✓ should contain unique models (65ms)
OrgPatientModel
✓ should be a UniqueModel (56ms)
getPhoneNumber
✓ should return the formatted phone number (74ms)
setPhoneNumber
✓ should set the number when no international code is present (43ms)
✓ should set the number when international code is present (46ms)
✓ should set the number when nationally formatted (53ms)
✓ should set the number when number is only partial (59ms)
✓ should set the number when number is only partial and formatted (80ms)
✓ should validate correctly when set to a non-number value (56ms)
✓ should validate correctly when set to an empty string (57ms)
getSMSNumber
✓ should return the formatted phone number (77ms)
setSMSNumber
✓ should set the number when no international code is present (66ms)
✓ should set the number when international code is present (49ms)
✓ should set the number when nationally formatted (80ms)
✓ should set the number when number is only partial
✓ should set the number when number is only partial and formatted (83ms)
✓ should validate correctly when set to a non-number value (40ms)
✓ should validate correctly when set to an empty string (66ms)
./entities-service/entities/pathway.js
PathwayModel
when setting the target adherence
✓ should update the adherence target (98ms)
✓ should update the adherence target updated timestamp (64ms)
✓ should post the target value
when task order changes
when the task order is not calculated by the user
✓ should not save the task order (3102ms)
./entities-service/entities/patientrisk-comment.js
CommentCollection
✓ should contain unique models (72ms)
CommentModel
✓ should be a UniqueModel (72ms)
#urlRoot
✓ should return the proper url (40ms)
#getFormattedComment
with a comment that contains a user mention
✓ should include the user mentioned in the comment (50ms)
with a comment that contains a newline
✓ should return HTML for the comment (42ms)
./entities-service/entities/patientrisk-task.js
TaskCollection
✓ should contain unique models (57ms)
TaskModel
✓ should be a UniqueModel (41ms)
#saveDueDate
✓ should return the proper url (66ms)
./entities-service/entities/program-risk.js
ProgramRisk
ProgramRiskCollection
Collection
✓ should contain unique models (59ms)
when fetching
✓ should not parseInt ids (72ms)
filterPathways
✓ should return a programRisk collection (72ms)
✓ should return only programRisks with pathways (60ms)
getHasPathways
✓ should return pathway boolean hash by risk id (50ms)
getFactorCounts
✓ should return factor count hash by risk id (54ms)
getCategories
✓ should return risks by category
getRisks
✓ should return a risk collection (57ms)
getFactors
✓ should return a factors collection (62ms)
ProgramRiskModel
✓ should be a UniqueModel (68ms)
when fetching
✓ should not parseInt ids (46ms)
getFactors
✓ should return a factors collection (47ms)
getRisk
✓ should return a risk model (54ms)
hasPathway
when programRisk has a pathway
when the pathway is not published
✓ should return false (56ms)
when the pathway is published
✓ should return true (52ms)
when programRisk does not have a pathway
✓ should return false (46ms)
./entities-service/entities/risk.js
Risk
RiskCollection
✓ should contain unique models (66ms)
getCategories
✓ should return a subset of the categories of risks (79ms)
RiskModel
✓ should be a UniqueModel (44ms)
./entities-service/entities/security-question.js
SecQuestionCollection
✓ should contain unique models (39ms)
SecQuestionModel
✓ should be a UniqueModel (51ms)
./entities-service/entities/user.js
UserCollection
✓ should contain unique models (62ms)
UserModel
✓ should be a UniqueModel (53ms)
getPhoneNumber
✓ should return the formatted phone number (51ms)
setPhoneNumber
✓ should set the number when no international code is present (65ms)
✓ should set the number when international code is present (42ms)
✓ should set the number when nationally formatted (72ms)
✓ should set the number when number is only partial (49ms)
✓ should set the number when number is only partial and formatted (44ms)
✓ should validate correctly when set to a non-number value (68ms)
✓ should validate correctly when set to an empty string (47ms)
./entities-service/factor.js
factor entity service
when requesting factor:collection
✓ should return a Factor Collection (66ms)
./entities-service/insights.js
when requesting fetch:pathway:adherence
✓ should return a pathway adherence collection (94ms)
when a pRiskGroupId is undefined
✓ should query with the current user's group IDs (74ms)
when a single pRiskGroupId is defined
✓ should query with the prisk_group_id (58ms)
when multiple pRiskGroupIds are defined
✓ should query with the prisk_group_ids (51ms)
when requesting fetch:pathway:adherence:drilldown
✓ should return a pathway adherence drilldown collection (209ms)
when the type equals 'open'
✓ should map the adherence request to the 'open' endpoint (56ms)
when the type equals 'closed-this-month'
✓ should map the adherence request to the 'current' endpoint (66ms)
when the type equals 'closed-last-month'
✓ should map the adherence request to the 'previous' endpoint (80ms)
when a pRiskGroupId is undefined
✓ should query with the current user's group IDs (61ms)
when a single pRiskGroupId is defined
✓ should query with the prisk_group_id (49ms)
when multiple pRiskGroupIds are defined
✓ should query with the prisk_group_ids (91ms)
./entities-service/issue.js
when requesting issue:model
✓ should return a IssueItem (54ms)
when requesting issue:collection
✓ should return an IssueCollection (49ms)
when requesting issue:collection:getCache
✓ should return the cached collection (61ms)
./entities-service/nav-item.js
when requesting navItem:collection
✓ should return a NavItemCollection (43ms)
./entities-service/nav-section.js
when requesting navSection:collection:setCache
✓ should return the cached collection (64ms)
when requesting navSection:collection
✓ should return a NavSectionCollection (51ms)
./entities-service/notification.js
when requesting notification:collection
✓ should return an NotificationCollection (50ms)
./entities-service/orgpatient.js
when requesting orgpatient:collection
✓ should return an OrgPatientCollection (54ms)
when requesting orgpatient:model
✓ should return an OrgPatientModel (39ms)
when requesting fetch:orgpatient:riskScores
✓ should return a Backbone Collection (43ms)
./entities-service/patientrisk-comment.js
when requesting patientrisk:comment:collection
✓ should return an CommentCollection (53ms)
when requesting patientrisk:comment:model
✓ should return an CommentModel (44ms)
./entities-service/patientrisk-task.js
when requesting patientrisk:task:collection
✓ should return a TaskCollection (51ms)
when requesting patientrisk:task:model
✓ should return a TaskModel (41ms)
./entities-service/patientrisk.js
when requesting patientrisk:collection
✓ should return a PRiskCollection (73ms)
when requesting patientrisk:model
✓ should return a PRiskModel (40ms)
./entities-service/program-risk.js
programRisk entity service
when requesting programRisk:model
✓ should return a ProgramRisk Model (40ms)
when requesting programRisk:collection
✓ should return a ProgramRisk Collection (53ms)
when requesting fetch:programRisk:collection:byProgram
✓ should return a ProgramRisk Collection (47ms)
includes
✓ should filter by program (60ms)
✓ should include program relationship (47ms)
✓ should include risk relationship (50ms)
✓ should include pathway relationship (47ms)
✓ should include factors relationship (43ms)
./entities-service/risk.js
risk entity service
when requesting risk:model
✓ should return a Risk Model (58ms)
when requesting risk:collection
✓ should return a Risk Collection (45ms)
./entities-service/role.js
when requesting role:collection
✓ should return a RoleCollection (55ms)
when requesting role:collection:setCache
✓ should return _cache with role:collection:getCache (40ms)
✓ should return a NavSectionCollection (41ms)
./entities-service/security-question.js
when requesting role:collection
✓ should return a SecQuestionCollection (46ms)
when requesting secQs:select
✓ should set the selected question (50ms)
✓ should indicate that the new selected question is not the old selected question (44ms)
✓ should set the old selected question to false (41ms)
./services/fuzzy-search/fuzzy-search.js
fuzzy search service
Risk search
when initializing
✓ should accept a object with `risks` and `factors` collections (50ms)
✓ should throw an error if neither `risks`, `factors`, or `programRisks` are not defined (53ms)
when searching
✓ should return a collection of results sorted by score (93ms)
✓ should prioritize results with risk name and factor name matches (53ms)
✓ should return `factor` on the risk result when relevant (56ms)
./services/latest-list.js
latest-list service
when requesting has:latestList
when latest list is not set
✓ should return false (44ms)
when latest list is set
✓ should return true (52ms)
when requesting go:latestList
when latest list is not set
✓ should not trigger a router event (47ms)
when latest list is set
✓ should not trigger a router event (60ms)
./services/table/table.js
TableService
when requesting a frontend custom filter
✓ should return a custom filter (51ms)
✓ should set the selected val on the options (45ms)
when requesting data filters
✓ should return a table filter (61ms)
✓ should add the options as the collection (38ms)
✓ should set the selected (65ms)
when there are no options defined
✓ should throw an error (40ms)
request "filterQuery"
when all filter queries are expected
✓ should compile the filters query (51ms)
when a filter query is null
✓ should compile the filters query (44ms)
when no filter queries are expected
✓ should return an empty array (43ms)
./utils/formatting.js
fixLegacyServerFormatting
✓ should replace <br>s with
✓ should replace "<br>
" with a single
(43ms)
renderNewline
✓ should replace any
with <br> (40ms)
with <br> (38ms)
./utils/sorting.js
UTILS/sorting
alphaSort
✓ should sort the collection asc (49ms)
✓ should sort the collection desc (44ms)
intSort
✓ should sort the collection asc (50ms)
✓ should sort the collection desc (47ms)
intSortBy
✓ should sort the collection asc (43ms)
✓ should sort the collection desc (44ms)
numSort
✓ should sort the collection asc (47ms)
✓ should sort the collection desc (43ms)
numSortBy
✓ should sort the collection asc (41ms)
✓ should sort the collection desc (48ms)
dateSort
✓ should sort the collection asc (56ms)
✓ should sort the collection desc (48ms)
dateSortBy
✓ should sort the collection asc (38ms)
✓ should sort the collection desc (43ms)
185 passing (17s)
(Results)
┌──────────────────────────┐
│ Tests: 185 │
│ Passing: 185 │
│ Failing: 0 │
│ Pending: 0 │
│ Skipped: 0 │
│ Screenshots: 0 │
│ Video: false │
│ Duration: 17 seconds │
│ Spec Ran: unit.js │
└──────────────────────────┘
cypress:webpack close /home/travis/build/RoundingWell/RWell/mainapp/assets/tests/integration/unit.js +18s
(Uploading Results)m
- Nothing to Upload
7====================================================================================================
(Run Finished)
777
Spec Tests Passing Failing Pending Skipped
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ ✖ ci.js 03:44 193 192 1 -7 0m- │
├────────────────────────────────────────────────────────────────────────────────────────────────┤
│ ✔ unit.js 00:17 185 185 - - - │
└──────────90m──────────────────────────────────────────────────────────────────────────────────────┘
1 of 2 failed (50%) 04:01 378 377 1 - -
───────────────────────────────────────────────────────────────────────────────────────────────────────
@paulfalgout
Copy link
Author

Overall travis run time: Ran for 8 min 19 sec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment