Ghost/ghost/admin
Sodbileg Gansukh d30164df97
Improved publishing flow (#20878)
ref DES-706

* After a user publishes or schedules a post, they are directed to the post list
* If a post is sent as an email, they are directed to the Analytics page
* In both cases, a confirmation modal is shown
* If a post is published, they can share it directly from the confirmation modal
* Added a "Share" button and some additional functions (view, edit, and delete post) to
published posts in post analytics
* Added a manual "Refresh" button to post analytics so that there is
no need to reload the whole app to update the data

---------

Co-authored-by: Sag <guptazy@gmail.com>
2024-08-29 21:17:16 +02:00
..
app Improved publishing flow (#20878) 2024-08-29 21:17:16 +02:00
config Fixed editor not loading in Admin acceptance tests 2024-08-21 11:49:05 +01:00
lib Updated timezone dependency (#20570) 2024-07-09 16:31:36 -05:00
mirage Added one-time payments under "payments" for filtering (#20807) 2024-08-22 10:26:46 +00:00
public/assets Publish modal updates (#20817) 2024-08-22 14:49:29 +00:00
tests Added initial Stats page to Ghost Admin (#20877) 2024-08-29 12:56:39 +01:00
.editorconfig
.ember-cli
.eslintignore
.eslintrc.js
.lint-todo Added Admin acceptance test for post revision restoration 2024-06-04 20:16:19 +01:00
.lint-todorc.js
.template-lintrc.js
.watchmanconfig
ember-cli-build.js Fixed editor not loading in Admin acceptance tests 2024-08-21 11:49:05 +01:00
ember-cli-update.json
jsconfig.json 🐛 Fixed beta editor HTML cards auto-closing tags when rendering 2023-06-19 14:39:51 +02:00
package.json Added initial Stats page to Ghost Admin (#20877) 2024-08-29 12:56:39 +01:00
README.md 🎨 Removed member bulk deletion safeguard from safe queries (#20747) 2024-08-14 15:48:54 +00:00
testem.js

Ghost-Admin

This is the home of the Ember.js-based Admin app that ships with Ghost.

Test

Running tests in the browser

Run all tests in the browser by running yarn dev in the Ghost monorepo and visiting http://localhost:4200/tests. The code is hotloaded on change and you can filter which tests to run.

Testing public documentation


Tip: You can use this.timeout(0); await this.pauseTest(); in your tests to temporarily pause the execution of browser tests. Use the browser console to inspect and debug the DOM, then resume tests by running resumeTest() directly in the browser console (docs)

Running tests in the CLI

To build and run tests in the CLI, you can use:

TZ=UTC yarn test

Note the TZ=UTC environment variable which is currently required to get tests working if your system timezone doesn't match UTC.


However, this is very slow when writing tests, as it requires the app to be rebuilt on every change. Instead, create a separate watching build with:

yarn build --environment=test -w -o="dist-test"

Then run tests with:

TZ=UTC yarn test 1 --reporter dot --path="dist-test"

The --reporter dot shows a dot (.) for every successful test, and F for every failed test. It renders the output of the failed tests only.


To run a specific test file:

TZ=UTC yarn test 1 --reporter dot --path="dist-test" -mp=tests/unit/helpers/gh-count-characters-test.js

To have a full list of the available options, run

ember exam --help

Copyright & License

Copyright (c) 2013-2024 Ghost Foundation - Released under the MIT license. Ghost and the Ghost Logo are trademarks of Ghost Foundation Ltd. Please see our trademark policy for info on acceptable usage.