Fix flaky spellcheck test
This commit is contained in:
parent
6d230be7cc
commit
f45be78ac6
|
|
@ -7,7 +7,7 @@ const userText = 'Hir ist ein Feler gewesen';
|
||||||
const operations = {
|
const operations = {
|
||||||
MeQuery: {
|
MeQuery: {
|
||||||
me: {
|
me: {
|
||||||
permissions: [],
|
isTeacher: false,
|
||||||
readOnly: false,
|
readOnly: false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
@ -142,7 +142,6 @@ describe('Spellcheck', () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// todo: unskip me
|
|
||||||
it('should highlight three errors', () => {
|
it('should highlight three errors', () => {
|
||||||
cy.visit('/module/lohn-und-budget/');
|
cy.visit('/module/lohn-und-budget/');
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,10 @@ const getModuleId = () => moduleIdIterator.next().value;
|
||||||
const getContentBlockId = () => contentBlockIdIterator.next().value;
|
const getContentBlockId = () => contentBlockIdIterator.next().value;
|
||||||
const getInstrumentId = () => instrumentIdGenerator.next().value;
|
const getInstrumentId = () => instrumentIdGenerator.next().value;
|
||||||
|
|
||||||
|
// small base64 image that looks like a transparent background in photoshop
|
||||||
|
const smallImage =
|
||||||
|
'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAIAQMAAAD+wSzIAAAABlBMVEX///+/v7+jQ3Y5AAAADklEQVQI12P4AIX8EAgALgAD/aNpbtEAAAAASUVORK5CYII';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
UUID: () => '123-456-789',
|
UUID: () => '123-456-789',
|
||||||
GenericStreamFieldType: () => ({ type: 'text_block', value: 'Generic Stream Field Type' }),
|
GenericStreamFieldType: () => ({ type: 'text_block', value: 'Generic Stream Field Type' }),
|
||||||
|
|
@ -66,6 +70,10 @@ export default {
|
||||||
solution: 'Assignment Solution',
|
solution: 'Assignment Solution',
|
||||||
}),
|
}),
|
||||||
PrivateUserNode: () => ({
|
PrivateUserNode: () => ({
|
||||||
|
firstName: '',
|
||||||
|
lastName: '',
|
||||||
|
username: 'user',
|
||||||
|
avatarUrl: smallImage,
|
||||||
readOnly: false,
|
readOnly: false,
|
||||||
onboardingVisited: true,
|
onboardingVisited: true,
|
||||||
selectedClass,
|
selectedClass,
|
||||||
|
|
@ -93,8 +101,7 @@ export default {
|
||||||
title: '',
|
title: '',
|
||||||
width: 800,
|
width: 800,
|
||||||
height: 400,
|
height: 400,
|
||||||
// small base64 image that looks like a transparent background in photoshop
|
src: smallImage,
|
||||||
src: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAIAQMAAAD+wSzIAAAABlBMVEX///+/v7+jQ3Y5AAAADklEQVQI12P4AIX8EAgALgAD/aNpbtEAAAAASUVORK5CYII',
|
|
||||||
alt: '',
|
alt: '',
|
||||||
},
|
},
|
||||||
heroSource: '',
|
heroSource: '',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue