Fix cypress test, rename some files

This commit is contained in:
Ramon Wenger 2021-08-04 17:07:17 +02:00
parent 692eb13a9b
commit 7a5d0b90db
10 changed files with 4 additions and 5 deletions

View File

@ -1,12 +1,11 @@
import getMe from '../../fixtures/me.minimal';
import module from '../../fixtures/module.minimal';
import mocks from '../../fixtures/mocks';
import {getMinimalMe} from '../../support/helpers';
const operations = isTeacher => ({
operations: {
MeQuery: {
me: getMe(isTeacher),
},
MeQuery: getMinimalMe({isTeacher}),
ModuleDetailsQuery: {
module,
},

View File

@ -1,10 +1,10 @@
// todo: clean up this file
export const getMinimalMe = ({readOnly, classReadOnly = false}) => ({
export const getMinimalMe = ({readOnly = false, classReadOnly = false, isTeacher = true}) => ({
me: {
onboardingVisited: true,
readOnly,
isTeacher: true,
isTeacher,
selectedClass: {
id: 'selectedClassId',
readOnly: classReadOnly,