Ghost/ghost/admin/tests/helpers
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
..
editor.js Fixed errors from 404 error handler for non-transition 404s 2024-09-13 11:02:55 +01:00
file-upload.js Refactored deprecated usage of [files] option param for triggerEvent 2019-05-13 15:31:32 +01:00
forms.js Migrated staff user screen to Ember Octane patterns (#15532) 2022-10-05 12:05:31 +01:00
labs-flag.js Added non-Stripe members setting screen acceptance tests 2022-02-18 22:36:01 +00:00
login-as-role.js Added regression test for publishing as editor when over member limit (#15518) 2022-10-03 12:05:58 +01:00
mailgun.js Added initial tests for new publish flow 2022-05-30 19:12:16 +01:00
members.js 🐛 Fixed active state bug in sidebar nav (#15511) 2022-10-03 19:49:21 +01:00
newsletters.js Added initial tests for new publish flow 2022-05-30 19:12:16 +01:00
stripe.js Increased publish flow acceptance tests 2022-05-31 22:59:20 +01:00
visit.js Migrate to latest ember, ember-mocha and modern ember testing (#1044) 2019-01-02 09:58:55 +00:00