Fix cypress test, rename some files
This commit is contained in:
parent
692eb13a9b
commit
7a5d0b90db
|
|
@ -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,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue