UNCLASSIFIED - NO CUI

Skip to content

Update Nexus Cypress test to work in BB CI

Nexus tests currently will fail if enabled in BB CI. It appears to be a timing issue. See below logs.

image

====================================================================================================
  (Run Starting)
  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Cypress:    5.0.0                                                                              │
  │ Browser:    Chrome 83 (headless)
  │ Specs:      1 found (nexus-healthspec.js)
  └────────────────────────────────────────────────────────────────────────────────────────────────┘
────────────────────────────────────────────────────────────────────────────────────────────────────
                                                                                                    
  Running:  nexus-healthspec.js                                                             (1 of 1)
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
  Basic Nexus
    1) Visit the Nexus sign in page
  0 passing (13s)
  1 failing
  1) Basic Nexus
       Visit the Nexus sign in page:
     AssertionError: Timed out retrying: Expected to find content: 'Next' but never did.
      at Context.eval (https://nexus.bigbang.dev/__cypress/tests?p=cypress/integration/nexus-healthspec.js:106:8)
  (Results)
  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        1                                                                                │
  │ Passing:      0                                                                                │
  │ Failing:      1                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      0                                                                                │
  │ Screenshots:  1                                                                                │
  │ Video:        true
  │ Duration:     13 seconds                                                                       │
  │ Spec Ran:     nexus-healthspec.js                                                              │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘
  (Screenshots)
  -  /test/cypress/screenshots/nexus-healthspec.js/Basic Nexus -- Visit the Nexus sig     (1280x720)
     n in page (failed).png                                                                         
  (Video)
  -  Started processing:  Compressing to 32 CRF                                                     
  -  Finished processing: /test/cypress/videos/nexus-healthspec.js.mp4                   (0 seconds)
====================================================================================================
  (Run Finished)
       Spec                                              Tests  Passing  Failing  Pending  Skipped  
  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ ✖  nexus-healthspec.js                      00:13        1        -        1        -        - │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘
    ✖  1 of 1 failed (100%)                     00:13        1        -        1        -        -