exports['e2e caught and uncaught hooks errors failing1 1'] = `

====================================================================================================

  (Run Starting)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Cypress:    1.2.3                                                                              │
  │ Browser:    FooBrowser 88                                                                      │
  │ Specs:      1 found (hook_caught_error_failing_spec.coffee)                                    │
  │ Searched:   cypress/integration/hook_caught_error_failing_spec.coffee                          │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘


────────────────────────────────────────────────────────────────────────────────────────────────────
                                                                                                    
  Running: hook_caught_error_failing_spec.coffee...                                        (1 of 1) 


  ✓ t1a
  s1a
    1) "before each" hook for "t2a"

  s2a
    ✓ t5a
    ✓ t6a
    ✓ t7a

  s3a
    2) "before all" hook for "t8a"

  s4a
    3) "before all" hook for "t10a"

  s5a
    ✓ fires all test:after:run events


  5 passing
  3 failing

  1) s1a "before each" hook for "t2a":
     CypressError: Timed out retrying: Expected to find element: '.does-not-exist', but never found it.

Because this error occurred during a 'before each' hook we are skipping the remaining tests in the current suite: 's1a'
      at stack trace line
      at stack trace line
      at stack trace line
      at stack trace line
      at stack trace line
      at stack trace line
      at stack trace line
      at stack trace line
      at stack trace line
      at stack trace line
      at stack trace line
      at stack trace line
      at stack trace line
      at stack trace line

  2) s3a "before all" hook for "t8a":
     Error: s3a before hook failed

Because this error occurred during a 'before all' hook we are skipping the remaining tests in the current suite: 's3a'
      at stack trace line

  3) s4a "before all" hook for "t10a":
     Error: s4a before hook failed

Because this error occurred during a 'before all' hook we are skipping the remaining tests in the current suite: 's4a'
      at stack trace line




  (Results)

  ┌─────────────────────────────────────────────────────┐
  │ Tests:        11                                    │
  │ Passing:      5                                     │
  │ Failing:      3                                     │
  │ Pending:      0                                     │
  │ Skipped:      3                                     │
  │ Screenshots:  3                                     │
  │ Video:        true                                  │
  │ Duration:     X seconds                             │
  │ Spec Ran:     hook_caught_error_failing_spec.coffee │
  └─────────────────────────────────────────────────────┘


  (Screenshots)

  - /foo/bar/.projects/e2e/cypress/screenshots/hook_caught_error_failing_spec.coffee/s1a -- t2a -- before each hook (failed).png (1280x720)
  - /foo/bar/.projects/e2e/cypress/screenshots/hook_caught_error_failing_spec.coffee/s3a -- t8a -- before all hook (failed).png (1280x720)
  - /foo/bar/.projects/e2e/cypress/screenshots/hook_caught_error_failing_spec.coffee/s4a -- t10a -- before all hook (failed).png (1280x720)


  (Video)

  - Started processing:   Compressing to 32 CRF
  - Finished processing:  /foo/bar/.projects/e2e/cypress/videos/abc123.mp4 (X seconds)


====================================================================================================

  (Run Finished)


      Spec                                                Tests  Passing  Failing  Pending  Skipped 
  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ ✖ hook_caught_error_failing_spec.coffee     XX:XX       11        5        3        -        3 │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘
    1 of 1 failed (100%)                        XX:XX       11        5        3        -        3  


`

exports['e2e caught and uncaught hooks errors failing2 1'] = `

====================================================================================================

  (Run Starting)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Cypress:    1.2.3                                                                              │
  │ Browser:    FooBrowser 88                                                                      │
  │ Specs:      1 found (hook_uncaught_error_failing_spec.coffee)                                  │
  │ Searched:   cypress/integration/hook_uncaught_error_failing_spec.coffee                        │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘


────────────────────────────────────────────────────────────────────────────────────────────────────
                                                                                                    
  Running: hook_uncaught_error_failing_spec.coffee...                                      (1 of 1) 


  ✓ t1b
  s1b
    1) "before each" hook for "t2b"

  s2b
    ✓ t5b
    ✓ t6b
    ✓ t7b


  4 passing
  1 failing

  1) s1b "before each" hook for "t2b":
     Uncaught ReferenceError: foo is not defined

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

Because this error occurred during a 'before each' hook we are skipping the remaining tests in the current suite: 's1b'
      at stack trace line




  (Results)

  ┌───────────────────────────────────────────────────────┐
  │ Tests:        7                                       │
  │ Passing:      4                                       │
  │ Failing:      1                                       │
  │ Pending:      0                                       │
  │ Skipped:      2                                       │
  │ Screenshots:  1                                       │
  │ Video:        true                                    │
  │ Duration:     X seconds                               │
  │ Spec Ran:     hook_uncaught_error_failing_spec.coffee │
  └───────────────────────────────────────────────────────┘


  (Screenshots)

  - /foo/bar/.projects/e2e/cypress/screenshots/hook_uncaught_error_failing_spec.coffee/s1b -- t2b -- before each hook (failed).png (1280x720)


  (Video)

  - Started processing:   Compressing to 32 CRF
  - Finished processing:  /foo/bar/.projects/e2e/cypress/videos/abc123.mp4 (X seconds)


====================================================================================================

  (Run Finished)


      Spec                                                Tests  Passing  Failing  Pending  Skipped 
  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ ✖ hook_uncaught_error_failing_spec.cof…     XX:XX        7        4        1        -        2 │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘
    1 of 1 failed (100%)                        XX:XX        7        4        1        -        2  


`

exports['e2e caught and uncaught hooks errors failing3 1'] = `

====================================================================================================

  (Run Starting)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Cypress:    1.2.3                                                                              │
  │ Browser:    FooBrowser 88                                                                      │
  │ Specs:      1 found (hook_uncaught_root_error_failing_spec.coffee)                             │
  │ Searched:   cypress/integration/hook_uncaught_root_error_failing_spec.coffee                   │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘


────────────────────────────────────────────────────────────────────────────────────────────────────
                                                                                                    
  Running: hook_uncaught_root_error_failing_spec.coffee...                                 (1 of 1) 


  1) "before each" hook for "t1c"

  0 passing
  1 failing

  1)  "before each" hook for "t1c":
     Uncaught ReferenceError: foo is not defined

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

Because this error occurred during a 'before each' hook we are skipping all of the remaining tests.
      at stack trace line




  (Results)

  ┌────────────────────────────────────────────────────────────┐
  │ Tests:        4                                            │
  │ Passing:      0                                            │
  │ Failing:      1                                            │
  │ Pending:      0                                            │
  │ Skipped:      3                                            │
  │ Screenshots:  1                                            │
  │ Video:        true                                         │
  │ Duration:     X seconds                                    │
  │ Spec Ran:     hook_uncaught_root_error_failing_spec.coffee │
  └────────────────────────────────────────────────────────────┘


  (Screenshots)

  - /foo/bar/.projects/e2e/cypress/screenshots/hook_uncaught_root_error_failing_spec.coffee/t1c -- before each hook (failed).png (1280x720)


  (Video)

  - Started processing:   Compressing to 32 CRF
  - Finished processing:  /foo/bar/.projects/e2e/cypress/videos/abc123.mp4 (X seconds)


====================================================================================================

  (Run Finished)


      Spec                                                Tests  Passing  Failing  Pending  Skipped 
  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ ✖ hook_uncaught_root_error_failing_spe…     XX:XX        4        -        1        -        3 │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘
    1 of 1 failed (100%)                        XX:XX        4        -        1        -        3  


`

exports['e2e caught and uncaught hooks errors failing4 1'] = `

====================================================================================================

  (Run Starting)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Cypress:    1.2.3                                                                              │
  │ Browser:    FooBrowser 88                                                                      │
  │ Specs:      1 found (hook_uncaught_error_events_failing_spec.coffee)                           │
  │ Searched:   cypress/integration/hook_uncaught_error_events_failing_spec.coffee                 │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘


────────────────────────────────────────────────────────────────────────────────────────────────────
                                                                                                    
  Running: hook_uncaught_error_events_failing_spec.coffee...                               (1 of 1) 


  uncaught hook error should continue to fire all mocha events
    s1
      1) "before each" hook for "does not run"
    s2
      ✓ does run
      ✓ also runs


  2 passing
  1 failing

  1) uncaught hook error should continue to fire all mocha events s1 "before each" hook for "does not run":
     Uncaught ReferenceError: foo is not defined

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

Because this error occurred during a 'before each' hook we are skipping the remaining tests in the current suite: 's1'
      at stack trace line




  (Results)

  ┌──────────────────────────────────────────────────────────────┐
  │ Tests:        3                                              │
  │ Passing:      2                                              │
  │ Failing:      1                                              │
  │ Pending:      0                                              │
  │ Skipped:      0                                              │
  │ Screenshots:  1                                              │
  │ Video:        true                                           │
  │ Duration:     X seconds                                      │
  │ Spec Ran:     hook_uncaught_error_events_failing_spec.coffee │
  └──────────────────────────────────────────────────────────────┘


  (Screenshots)

  - /foo/bar/.projects/e2e/cypress/screenshots/hook_uncaught_error_events_failing_spec.coffee/uncaught hook error should continue to fire all mocha events -- s1 -- does not run -- before each hook (failed).png (1280x720)


  (Video)

  - Started processing:   Compressing to 32 CRF
  - Finished processing:  /foo/bar/.projects/e2e/cypress/videos/abc123.mp4 (X seconds)


====================================================================================================

  (Run Finished)


      Spec                                                Tests  Passing  Failing  Pending  Skipped 
  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ ✖ hook_uncaught_error_events_failing_s…     XX:XX        3        2        1        -        - │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘
    1 of 1 failed (100%)                        XX:XX        3        2        1        -        -  


`
