Clean up code to prevent flaky tests

This commit is contained in:
Ramon Wenger 2024-05-15 12:48:49 +02:00
parent 388d131a16
commit 3269f9a15a
2 changed files with 6 additions and 1 deletions

View File

@ -102,6 +102,7 @@ export default {
width: 800,
height: 400,
src: smallImage,
srcset: '',
alt: '',
},
heroSource: '',
@ -140,4 +141,8 @@ export default {
note: null,
contentUuid: null,
}),
WagtailImageNode: () => ({
src: smallImage,
srcset: '',
}),
};

View File

@ -98,7 +98,7 @@ const spellcheckText = computed(() => {
}
});
const emit = defineEmits(['reopen', 'saveInput', 'changeDocumentUrl']);
const emit = defineEmits(['reopen', 'saveInput', 'changeDocumentUrl', 'spellcheck']);
const reopenSubmission = () => {
emit('reopen');