mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-03 16:38:22 +03:00
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:
parent
d7cf0b4042
commit
fd98bc1bb9
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user