Ghost/ghost/admin/tests/unit
Kevin Ansfield 887f4d3ac2
🐛 Fixed editor unsaved changes modal showing too often (#20787)
ref [ENG-661](https://linear.app/tryghost/issue/ENG-661/) 
ref [ONC-253](https://linear.app/tryghost/issue/ONC-253/)
ref [PLG-174](https://linear.app/tryghost/issue/PLG-174/)

- restored the original but reverted fix for unsaved changes modal from https://github.com/TryGhost/Ghost/pull/20687
- updated code to remove some incorrect early-falsy-return logic in `editorController.hasDirtyAttributes` that prevented save of unsaved changes on the underlying model (e.g. excerpt)
- updated unit tests so they are testing real post model instances and therefore are testing what we expect them to test
- added acceptance tests to ensure autosave is working for title and excerpt fields

---------

Co-authored-by: Ronald Langeveld <hi@ronaldlangeveld.com>
2024-08-19 18:03:13 +00:00
..
authenticators Made session.user a synchronous property rather than a promise 2021-07-08 14:54:31 +01:00
components 🐛 Fixed button URL suggestions not loading for contributors, editors and authors (#20416) 2024-06-20 14:22:41 +02:00
controllers 🐛 Fixed editor unsaved changes modal showing too often (#20787) 2024-08-19 18:03:13 +00:00
helpers Fixed member subscription status when multiple subs (#19530) 2024-01-24 12:16:26 +01:00
mixins Update dependency eslint-plugin-ghost to v1.4.0 2020-05-06 18:07:01 +01:00
models Ran ember-cli-update --run-codemods (#2219) 2022-01-21 19:25:47 +00:00
routes Added collections CRUD UI 2023-05-23 17:26:47 +07:00
serializers Switched from v3 to canary API 2021-02-05 09:12:26 +00:00
services Added tests for dashboard stats service (#20567) 2024-07-10 00:50:41 +05:30
transforms Refactored to use individual slack settings (#2384) 2022-05-16 11:38:32 +01:00
utils 🐛 Fixed member subscription details in Admin (#20619) 2024-07-18 12:14:38 +02:00
validators Refactored to use individual slack settings (#2384) 2022-05-16 11:38:32 +01:00
.gitkeep Ember init, bower deps, es6 modules 2015-03-11 12:37:41 -06:00