Ghost/ghost/admin/tests
Kevin Ansfield f054205e58 Fixed errors from 404 error handler for non-transition 404s
ref https://linear.app/tryghost/issue/ONC-323

- our fallback 404 error handler assumed we always had a transition along with the error
  - this wasn't a bad assumption, it should be very unlikely that we see a 404 outside of navigating to a non-existent/deleted resource
  - unfortunately we weren't handling the error thrown by our error handler which meant the error was silent as far as the user was concerned
  - having a silent error meant that in very rare circumstances the editor could get into a state where saving was failing but there was no indication of that
- updated the fallback 404 error handler to only do something when navigation was occurring in which case it transitions to the 404 screen, otherwise let the error continue to our generic API error handling which will stay on the current screen but show an error alert
- adjusted the editor saving to actually trigger autosave-after-change when testing (albeit with 100ms wait compared to 3s) so the tests better reflect actual behaviour
2024-09-13 11:02:55 +01:00
..
acceptance Fixed errors from 404 error handler for non-transition 404s 2024-09-13 11:02:55 +01:00
helpers Fixed errors from 404 error handler for non-transition 404s 2024-09-13 11:02:55 +01:00
integration Fixed lint warnings from Admin feature-test 2024-09-03 10:59:08 +01:00
unit Added Tips & Donations one-off payments 2024-09-03 16:00:48 +01:00
index.html Remove ember application template wrapper 2018-05-01 10:57:20 +01:00
test-helper.js Fixed editor not loading in Admin acceptance tests 2024-08-21 11:49:05 +01:00