Fixed launch acceptance tests

no issue

- skips POSTing to the front-end to get the iframe contents whilst testing because we don't have any mocks for that
This commit is contained in:
Kevin Ansfield 2021-02-18 20:03:21 +00:00
parent d7cf0b4042
commit fd98bc1bb9

View File

@ -1,4 +1,5 @@
import Component from '@glimmer/component';
import config from 'ghost-admin/config/environment';
import {
ICON_EXTENSIONS,
ICON_MIME_TYPES,
@ -140,6 +141,11 @@ export default class GhLaunchWizardCustomiseDesignComponent extends Component {
@task
*updatePreviewTask() {
// skip during testing because we don't have mocks for the front-end
if (config.environment === 'test') {
return;
}
// grab the preview html
const ajaxOptions = {
contentType: 'text/html;charset=utf-8',