Ghost/ghost/admin/tests/acceptance/editor
Kevin Ansfield e3db911108
🐛 Fixed confusing error state when publishing if member count is over hosting plan limit (#15473)
closes https://github.com/TryGhost/Team/issues/1885

- adds limit check for members to the `PublishOptions` class when it's constructed to set a `publishDisabledError` property if the limit check fails
  - if `publishOptions.publishDisabledCheck` is present, all publish options in the publish flow are disabled, the underlying error message is shown, and the continue button is removed to prevent filling in everything only to find at the end of the process that publishing fails
- added handling for a `HostLimitError` error from the API when confirming publishing so the proper underlying message is displayed instead of the confusing "Host limit error, cannot edit post" error
  - this is a backup measure for any instances where you're under the max members limit when starting the publish flow but are over the limit when you reach the end of the publish flow
2022-09-26 17:37:35 +01:00
..
lexical-test.js Added redirect between mobiledoc/lexical editors 2022-09-13 18:55:39 +01:00
publish-flow-test.js 🐛 Fixed confusing error state when publishing if member count is over hosting plan limit (#15473) 2022-09-26 17:37:35 +01:00