fc501add94
closes https://linear.app/tryghost/issue/PLG-176 The editor files were previously stubbed for testing because we didn't have a way to load the externally-hosted files. This made testing slow and difficult because the only way to test the Admin integration was via Ghost's e2e browser tests. - unstubbed the editor globals so `fetchKoenigLexical()` actually tries to import the external assets - updated `ember-cli-build` to copy the Koenig UMD file over to the assets directory in development/test builds - updated `environment.js` to set the required filename for the default asset import to successfully hit the test environment hosted files - updated lexical editor acceptance tests to demonstrate the editor loads successfully for new and existing posts
21 lines
486 B
JavaScript
21 lines
486 B
JavaScript
import Application from 'ghost-admin/app';
|
|
import config from 'ghost-admin/config/environment';
|
|
import registerWaiter from 'ember-raf-scheduler/test-support/register-waiter';
|
|
import start from 'ember-exam/test-support/start';
|
|
import {setApplication} from '@ember/test-helpers';
|
|
|
|
import chai from 'chai';
|
|
import chaiDom from 'chai-dom';
|
|
chai.use(chaiDom);
|
|
|
|
setApplication(Application.create(config.APP));
|
|
|
|
registerWaiter();
|
|
|
|
mocha.setup({
|
|
timeout: 15000,
|
|
slow: 500
|
|
});
|
|
|
|
start();
|