Ghost/ghost/admin/mirage
Kevin Ansfield fd926193ce 🐛 Fixed unsaved changes modal showing when title has leading/trailing whitespace
closes https://linear.app/tryghost/issue/PLG-205

The server trims whitespace from the title when saving but our unsaved changes detection was comparing the raw title input field value meaning there would be a mismatch after publishing if the title field contained leading/trailing whitespace.

- updated title comparison to compare trimmed values
- moved and improved unsaved changes modal tests from publish-flow to unsaved-changes acceptance test file
  - added util for pasting content into the editor to test for content changes
2024-09-03 10:53:53 +01:00
..
config 🐛 Fixed unsaved changes modal showing when title has leading/trailing whitespace 2024-09-03 10:53:53 +01:00
factories Added one-time payments under "payments" for filtering (#20807) 2024-08-22 10:26:46 +00:00
fixtures Updated tips & donations default suggested value 2024-08-20 12:07:51 +01:00
models Added Admin acceptance test for post revision restoration 2024-06-04 20:16:19 +01:00
scenarios Updated newsletter management for switch to nullable sender_name 2022-04-15 09:43:22 +01:00
serializers Fixed missing URLs in improved search results 2024-06-11 16:53:08 +01:00
.eslintrc.js Update dependency eslint to v7 (#1566) 2020-05-17 22:53:37 +01:00
config.js Fixed "The routes only function has been deprecated" output in test runs 2022-05-25 11:03:05 +01:00
routes-dev.js Fixed "The routes only function has been deprecated" output in test runs 2022-05-25 11:03:05 +01:00
routes-test.js Added Mentions endpoint to Admin (#16136) 2023-01-17 20:16:18 +08:00
utils.js 🐛 Fixed error preventing admin area being usable by staff users with Contributor role 2022-10-31 12:01:39 +00:00